3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sections = array( array( 'name' => 'home', 'uri' => '/', 'title' => 'home'), array( 'name' => 'tech', 'uri' => '/tech', 'title' => 'ux/ui' ), array( 'name' => 'monetization', 'uri' => '/monetization', 'title' => 'monetization' ), array( 'name' => 'contact', 'uri' => '/contact', 'title' => 'contact', 'callToAction' => true, 'desktopTitle' => 'contact us' ), array( 'name' => 'blog', 'uri' => 'https://blog.marfeel.com/blog', 'title' => 'blog', 'external' => true), ); function callToActions($section) { return $section["callToAction"]; } function defaultSections($section) { return !$section["callToAction"]; } function buildSections ($sections) { $index = count($sections); echo $index; while($index) { $section = $sections[--$index]; echo "wololoooooo"; print_r($section); echo '<li> <a href="'. $section["uri"] . '">' . ($section["desktopTitle"]? ucfirst($section["desktopTitle"]): ucfirst($section["title"])) . '</a> </li>'; } } buildSections(array_filter($sections, callToActions)); //print_r(array_filter($sections, defaultSections));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00416.63
8.3.50.0130.00522.05
8.3.40.0080.00818.76
8.3.30.0120.00618.67
8.3.20.0070.00020.32
8.3.10.0050.00323.48
8.3.00.0080.00019.25
8.2.180.0070.01116.75
8.2.170.0070.00722.96
8.2.160.0140.00020.37
8.2.150.0030.00724.18
8.2.140.0000.00824.66
8.2.130.0070.00319.35
8.2.120.0040.00426.35
8.2.110.0090.00019.27
8.2.100.0080.00417.84
8.2.90.0030.00519.22
8.2.80.0080.00017.97
8.2.70.0030.01017.59
8.2.60.0050.00518.03
8.2.50.0050.00318.07
8.2.40.0040.00419.16
8.2.30.0040.00420.58
8.2.20.0090.00017.81
8.2.10.0050.00218.01
8.2.00.0080.00018.05
8.1.280.0090.00625.92
8.1.270.0060.00623.85
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00322.11
8.1.230.0150.00018.85
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0040.00418.62
8.1.160.0000.00822.07
8.1.150.0000.00718.86
8.1.140.0050.00319.62
8.1.130.0000.00717.69
8.1.120.0070.00017.39
8.1.110.0000.00717.40
8.1.100.0000.00817.53
8.1.90.0040.00417.48
8.1.80.0030.00617.37
8.1.70.0000.00717.27
8.1.60.0040.00417.60
8.1.50.0000.00817.49
8.1.40.0040.00417.53
8.1.30.0070.00417.68
8.1.20.0000.00817.69
8.1.10.0040.00417.57
8.1.00.0040.00417.52
8.0.300.0040.00420.36
8.0.290.0000.00716.72
8.0.280.0000.00718.59
8.0.270.0030.00617.27
8.0.260.0080.00017.28
8.0.250.0030.00317.05
8.0.240.0030.00316.90
8.0.230.0040.00417.01
8.0.220.0000.00716.97
8.0.210.0030.00516.92
8.0.200.0030.00317.07
8.0.190.0040.00416.92
8.0.180.0000.01016.97
8.0.170.0000.00817.00
8.0.160.0000.00817.04
8.0.150.0000.00716.96
8.0.140.0000.00716.95
8.0.130.0000.00713.39
8.0.120.0030.00616.82
8.0.110.0000.00716.94
8.0.100.0030.00316.82
8.0.90.0040.00416.88
8.0.80.0030.01316.97
8.0.70.0040.00416.97
8.0.60.0050.00217.02
8.0.50.0070.00016.95
8.0.30.0140.00617.16
8.0.20.0130.01417.40
8.0.10.0070.00016.96
8.0.00.0100.01016.72
7.4.330.0050.00016.67
7.4.320.0030.00316.53
7.4.300.0040.00416.57
7.4.290.0000.00716.53
7.4.280.0000.00816.51
7.4.270.0000.00716.66
7.4.260.0000.00716.50
7.4.250.0040.00416.55
7.4.240.0040.00416.65
7.4.230.0000.00716.70
7.4.220.0100.01016.69
7.4.210.0120.00316.56
7.4.200.0040.00416.69
7.4.160.0080.00616.32
7.4.150.0240.02417.40
7.4.140.0150.00617.86
7.4.130.0060.01116.51
7.4.120.0090.01016.58
7.4.110.0030.01416.57
7.4.100.0060.01216.35
7.4.90.0100.00716.68
7.4.80.0100.01619.39
7.4.70.0130.00616.62
7.4.60.0030.01216.51
7.4.50.0040.01116.70
7.4.40.0100.00916.59
7.4.30.0080.00816.48
7.4.10.0060.01215.11
7.4.00.0030.01215.00
7.3.330.0040.00413.21
7.3.320.0050.00013.38
7.3.310.0000.00716.41
7.3.300.0060.00016.29
7.3.290.0080.00816.31
7.3.280.0110.00916.34
7.3.270.0180.00517.40
7.3.260.0150.00316.36
7.3.250.0100.00716.43
7.3.240.0060.01316.46
7.3.230.0100.00716.41
7.3.210.0100.00716.38
7.3.200.0050.01016.71
7.3.190.0000.01616.55
7.3.180.0080.00816.66
7.3.170.0030.01416.56
7.3.160.0000.01516.66
7.3.130.0070.01114.93
7.3.120.0100.00714.52
7.3.110.0040.01514.81
7.3.100.0090.00614.98
7.3.90.0100.00614.88
7.3.80.0030.01014.90
7.3.70.0040.00414.52
7.3.60.0040.01114.77
7.3.50.0030.01014.68
7.3.40.0060.00614.57
7.3.30.0030.01014.92
7.3.20.0030.01016.71
7.3.10.0060.00616.49
7.3.00.0030.01116.62
7.2.330.0070.01016.53
7.2.320.0120.00616.76
7.2.310.0090.00916.66
7.2.300.0080.00816.73
7.2.290.0130.01016.66
7.2.260.0140.00115.05
7.2.250.0030.01615.02
7.2.240.0090.00614.69
7.2.230.0030.01014.89
7.2.220.0070.01014.71
7.2.210.0030.01314.88
7.2.200.0070.00715.02
7.2.190.0000.01214.76
7.2.180.0100.00714.78
7.2.170.0040.00815.02
7.2.160.0070.00715.07
7.2.150.0060.01017.10
7.2.140.0030.00716.76
7.2.130.0080.00816.81
7.2.120.0050.01116.87
7.2.110.0070.00616.69
7.2.100.0070.00616.95
7.2.90.0050.00616.90
7.2.80.0020.01116.74
7.2.70.0030.01016.82
7.2.60.0060.00816.81
7.2.50.0100.00416.87
7.2.40.0090.00516.89
7.2.30.0070.00516.91
7.2.20.0070.00816.71
7.2.10.0100.00616.85
7.2.00.0120.00317.71
7.1.330.0040.01115.80
7.1.320.0060.00915.71
7.1.310.0130.00315.92
7.1.300.0030.00615.79
7.1.290.0090.00915.57
7.1.280.0030.00615.75
7.1.270.0060.00615.82
7.1.260.0080.00315.63
7.1.250.0040.00715.84
7.1.240.0090.00615.54
7.1.230.0070.00715.78
7.1.220.0090.00315.59
7.1.210.0120.00315.94
7.1.200.0030.01015.65
7.1.190.0070.00715.96
7.1.180.0110.00415.87
7.1.170.0120.00015.46
7.1.160.0030.01015.80
7.1.150.0080.00515.45
7.1.140.0070.00415.53
7.1.130.0040.01115.81
7.1.120.0060.00615.75
7.1.110.0030.00715.41
7.1.100.0050.00816.88
7.1.90.0060.00915.60
7.1.80.0030.00715.87
7.1.70.0050.00516.49
7.1.60.0060.01417.60
7.1.50.0030.01116.20
7.1.40.0030.00715.43
7.1.30.0080.00615.78
7.1.20.0080.00815.49
7.1.10.0090.00015.72
7.1.00.0050.04118.91
7.0.330.0070.00715.33
7.0.320.0070.00715.48
7.0.310.0030.01015.21
7.0.300.0000.01115.31
7.0.290.0030.00715.29
7.0.280.0000.01415.29
7.0.270.0040.00415.32
7.0.260.0070.00315.35
7.0.250.0090.00315.13
7.0.240.0060.00915.39
7.0.230.0080.00415.45
7.0.220.0060.00615.32
7.0.210.0030.00615.37
7.0.200.0480.00814.74
7.0.190.0100.00315.38
7.0.180.0080.00015.35
7.0.170.0100.00015.42
7.0.160.0000.01215.43
7.0.150.0080.00415.25
7.0.140.0060.00915.25
7.0.130.0000.01215.06
7.0.120.0100.00315.27
7.0.110.0040.01115.25
7.0.100.0090.00615.20
7.0.90.0000.01315.37
7.0.80.0030.00615.42
7.0.70.0000.00815.28
7.0.60.0080.03917.62
7.0.50.0070.03216.53
7.0.40.0080.04516.69
7.0.30.0130.02416.77
7.0.20.0250.03016.80
7.0.10.0050.04716.72
7.0.00.0030.04016.72
5.6.400.0100.00314.71
5.6.390.0030.01014.28
5.6.380.0110.00414.35
5.6.370.0040.00414.24
5.6.360.0040.00814.28
5.6.350.0070.00414.11
5.6.340.0040.01114.30
5.6.330.0030.00714.35
5.6.320.0030.01314.15
5.6.310.0110.00414.32
5.6.300.0040.00813.96
5.6.290.0070.01014.48
5.6.280.0020.02217.62
5.6.270.0000.01714.38
5.6.260.0070.00714.40
5.6.250.0060.00614.36
5.6.240.0000.01414.09
5.6.230.0040.00814.29
5.6.220.0030.00614.16
5.6.210.0020.03217.38
5.6.200.0050.04316.23
5.6.190.0030.04517.38
5.6.180.0200.02817.47
5.6.170.0110.03417.34
5.6.160.0080.04617.30
5.6.150.0050.02316.07
5.6.140.0070.03716.26
5.6.130.0030.04716.34
5.6.120.0090.02317.74
5.6.110.0040.02617.74
5.6.100.0050.04617.57
5.6.90.0150.04217.53
5.6.80.0100.04417.47
5.6.70.0090.00314.13
5.6.60.0040.00414.20
5.6.50.0030.01014.20
5.6.40.0030.01014.30
5.6.30.0000.01314.15
5.6.20.0070.00714.39
5.6.10.0080.00414.32
5.6.00.0030.01014.07
5.5.380.0000.01114.00
5.5.370.0030.01014.27
5.5.360.0030.00914.22
5.5.350.0120.02517.46
5.5.340.0040.04616.18
5.5.330.0070.04817.31
5.5.320.0060.02717.11
5.5.310.0050.02917.18
5.5.300.0060.03416.07
5.5.290.0140.03816.10
5.5.280.0060.02317.55
5.5.270.0080.04517.38
5.5.260.0050.03917.52
5.5.250.0050.02417.47
5.5.240.0100.04617.16
5.5.230.0080.00414.41
5.5.220.0070.00714.00
5.5.210.0060.00613.86
5.5.200.0040.00814.11
5.5.190.0090.00214.11
5.5.180.0030.00614.44
5.5.170.0070.01114.35
5.5.160.0100.00614.07
5.5.150.0110.00314.36
5.5.140.0000.01714.43
5.5.130.0120.00614.25
5.5.120.0030.00814.40
5.5.110.0120.00413.87
5.5.100.0020.01114.10
5.5.90.0090.00613.81
5.5.80.0070.00313.68
5.5.70.0040.00414.27
5.5.60.0060.01213.76
5.5.50.0070.00714.15
5.5.40.0080.00413.67
5.5.30.0040.00814.14
5.5.20.0040.01113.98
5.5.10.0120.00314.02
5.5.00.0070.01014.05

preferences:
61.56 ms | 401 KiB | 5 Q