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 cmp($a, $b) { if ($a["callToAction"]) { return 1; } return -1; } usort($sections, "cmp");

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.70.0130.01018.30
8.3.60.0140.00716.63
8.3.50.0100.00822.11
8.3.40.0100.00718.70
8.3.30.0030.01018.71
8.3.20.0050.00220.34
8.3.10.0040.00423.71
8.3.00.0080.00019.25
8.2.180.0090.00618.29
8.2.170.0100.00322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00919.23
8.2.120.0040.00426.35
8.2.110.0030.00620.60
8.2.100.0070.00417.84
8.2.90.0000.00819.08
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00417.91
8.2.50.0030.00618.07
8.2.40.0040.00419.17
8.2.30.0040.00420.66
8.2.20.0040.00417.75
8.2.10.0000.00818.00
8.2.00.0040.00418.11
8.1.280.0110.00725.92
8.1.270.0080.00422.23
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0060.00323.76
8.1.230.0110.00020.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0060.00318.78
8.1.160.0000.00721.86
8.1.150.0000.00718.82
8.1.140.0040.00419.53
8.1.130.0050.00317.63
8.1.120.0000.00717.46
8.1.110.0050.00317.40
8.1.100.0040.00417.44
8.1.90.0070.00017.42
8.1.80.0040.00417.39
8.1.70.0040.00417.27
8.1.60.0060.00317.44
8.1.50.0040.00417.33
8.1.40.0030.00517.49
8.1.30.0040.00817.57
8.1.20.0000.00817.57
8.1.10.0050.00217.50
8.1.00.0070.00017.46
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0070.00018.37
8.0.270.0000.00817.16
8.0.260.0000.00717.19
8.0.250.0000.00716.92
8.0.240.0000.00816.94
8.0.230.0070.00016.99
8.0.220.0000.00716.76
8.0.210.0040.00416.86
8.0.200.0100.00017.00
8.0.190.0070.00016.98
8.0.180.0060.00316.95
8.0.170.0030.00516.82
8.0.160.0040.00416.79
8.0.150.0030.00316.94
8.0.140.0000.00816.84
8.0.130.0060.00313.36
8.0.120.0030.00516.69
8.0.110.0040.00416.74
8.0.100.0000.00816.96
8.0.90.0040.00416.77
8.0.80.0110.01116.95
8.0.70.0050.00316.76
8.0.60.0050.00216.93
8.0.50.0070.00016.93
8.0.30.0100.00917.11
8.0.20.0180.01117.40
8.0.10.0040.00316.90
8.0.00.0070.01016.77
7.4.330.0000.00516.84
7.4.320.0000.00616.31
7.4.300.0000.00716.45
7.4.290.0030.00316.39
7.4.280.0040.00416.44
7.4.270.0030.00316.59
7.4.260.0080.00016.34
7.4.250.0000.00816.50
7.4.240.0040.00316.47
7.4.230.0000.00716.52
7.4.220.0160.00816.38
7.4.210.0070.01016.58
7.4.200.0030.00316.45
7.4.160.0090.00616.37
7.4.150.0090.00917.40
7.4.140.0070.01517.86
7.4.130.0090.00916.55
7.4.120.0090.00816.42
7.4.110.0060.01216.31
7.4.100.0030.01716.65
7.4.90.0130.01016.48
7.4.80.0120.00619.39
7.4.70.0080.00816.68
7.4.60.0150.00416.41
7.4.50.0100.00316.23
7.4.40.0190.00616.59
7.4.30.0060.01216.41
7.4.00.0090.00714.89
7.3.330.0030.00313.28
7.3.320.0050.00013.16
7.3.310.0000.00716.29
7.3.300.0060.00016.30
7.3.290.0090.00716.29
7.3.280.0090.00616.29
7.3.270.0110.00717.40
7.3.260.0080.01616.50
7.3.250.0090.00916.29
7.3.240.0080.00916.32
7.3.230.0030.01316.39
7.3.210.0060.01216.63
7.3.200.0120.00616.44
7.3.190.0090.00916.40
7.3.180.0160.00016.35
7.3.170.0120.00916.31
7.3.160.0000.01616.23
7.3.120.0040.00814.58
7.3.110.0030.01314.78
7.3.100.0090.00614.98
7.3.90.0110.00714.70
7.3.80.0090.00014.75
7.3.70.0100.01014.51
7.3.60.0100.00614.75
7.3.50.0070.00714.79
7.3.40.0030.01014.64
7.3.30.0080.00514.84
7.3.20.0060.00616.64
7.3.10.0030.00616.55
7.3.00.0100.00316.57
7.2.330.0040.02316.56
7.2.320.0090.01216.52
7.2.310.0120.00816.56
7.2.300.0140.00416.54
7.2.290.0160.00316.42
7.2.250.0070.00714.61
7.2.240.0070.01015.04
7.2.230.0050.00515.05
7.2.220.0000.01214.80
7.2.210.0090.00014.82
7.2.200.0070.00714.86
7.2.190.0040.00814.97
7.2.180.0040.00814.68
7.2.170.0000.01714.71
7.2.60.0100.00716.78
7.2.00.0000.01319.34
7.1.330.0030.01015.56
7.1.320.0070.00315.72
7.1.310.0110.00415.65
7.1.300.0060.00615.80
7.1.290.0040.00715.72
7.1.280.0130.00315.61
7.1.270.0040.01115.79
7.1.260.0080.00315.77
7.1.200.0040.00715.71
7.1.100.0000.01117.98
7.1.70.0050.00317.01
7.1.60.0080.00819.48
7.1.50.0040.00717.00
7.1.00.0030.07322.25
7.0.200.0130.00614.63
7.0.100.0100.04719.96
7.0.90.0100.03720.02
7.0.80.0000.04320.15
7.0.70.0030.04020.01
7.0.60.0070.03720.07
7.0.50.0070.04320.34
7.0.40.0030.03320.19
7.0.30.0100.03720.04
7.0.20.0100.04020.14
7.0.10.0070.04320.05
7.0.00.0070.03020.14
5.6.250.0070.04020.73
5.6.240.0070.04020.58
5.6.230.0100.03720.63
5.6.220.0000.05720.62
5.6.210.0030.06020.75
5.6.200.0100.03721.11
5.6.190.0070.04021.03
5.6.180.0070.03320.91
5.6.170.0070.04020.96
5.6.160.0030.04321.01
5.6.150.0030.04321.05
5.6.140.0070.04721.10
5.6.130.0070.04021.11
5.6.120.0070.07721.02
5.6.110.0130.07721.06
5.6.100.0030.08720.93
5.6.90.0070.08021.07
5.6.80.0070.08320.39
5.6.70.0070.06320.34
5.6.60.0070.07320.43
5.6.50.0130.07020.50
5.6.40.0000.07020.30
5.6.30.0170.03320.39
5.6.20.0030.08020.29
5.6.10.0170.06720.39
5.6.00.0070.04720.38
5.5.380.0070.03720.43
5.5.370.0130.03720.48
5.5.360.0000.04320.36
5.5.350.0070.04720.46
5.5.340.0070.04020.81
5.5.330.0000.04020.84
5.5.320.0000.04320.89
5.5.310.0000.04320.77
5.5.300.0100.04320.65
5.5.290.0000.04720.64
5.5.280.0200.06020.75
5.5.270.0070.04020.83
5.5.260.0070.07720.73
5.5.250.0070.05320.71
5.5.240.0070.07720.23
5.5.230.0070.07720.24
5.5.220.0130.06720.17
5.5.210.0070.03320.13
5.5.200.0130.06020.11
5.5.190.0030.08020.25
5.5.180.0030.05320.11
5.5.160.0100.08320.28
5.5.150.0030.08020.26
5.5.140.0030.07720.27
5.5.130.0000.07720.24
5.5.120.0070.04020.09
5.5.110.0070.03720.24
5.5.100.0070.05720.07
5.5.90.0000.06320.12
5.5.80.0030.08019.95
5.5.70.0100.05319.93
5.5.60.0030.03720.14
5.5.50.0030.06020.07
5.5.40.0030.08320.01
5.5.30.0030.07320.06
5.5.20.0130.03320.05
5.5.10.0000.04320.12
5.5.00.0070.07020.13

preferences:
75.95 ms | 401 KiB | 5 Q