3v4l.org

run code in 300+ PHP versions simultaneously
<?php $displays = array( array( 'position' => 0, ), array( 'position' => 1, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { @new Exception ('bla'); return $display1['position'] < $display2['position'] ? -1 : 1; } return 0; });

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.0100.00616.63
8.3.60.0180.00318.16
8.3.50.0090.00721.20
8.3.40.0110.00318.66
8.3.30.0070.00719.01
8.3.20.0040.00420.34
8.3.10.0000.00822.02
8.3.00.0030.00522.46
8.2.180.0100.00725.92
8.2.170.0030.01022.96
8.2.160.0070.01019.29
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00819.36
8.2.110.0060.00322.21
8.2.100.0120.00319.36
8.2.90.0050.00219.35
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00819.89
8.2.30.0040.00418.17
8.2.20.0040.00417.73
8.2.10.0040.00417.66
8.2.00.0000.00817.68
8.1.280.0040.01125.92
8.1.270.0040.00421.95
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00423.86
8.1.230.0070.00419.12
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0050.00217.66
8.1.180.0030.00618.72
8.1.170.0060.00318.52
8.1.160.0070.00022.05
8.1.150.0040.00418.56
8.1.140.0000.00717.50
8.1.130.0000.00717.87
8.1.120.0070.00017.36
8.1.110.0070.00017.44
8.1.100.0030.00317.42
8.1.90.0070.00017.47
8.1.80.0000.00717.39
8.1.70.0030.00317.36
8.1.60.0030.00617.59
8.1.50.0050.00317.52
8.1.40.0000.00817.57
8.1.30.0000.00717.61
8.1.20.0000.00817.49
8.1.10.0000.00817.46
8.1.00.0030.00717.51
8.0.300.0080.00018.77
8.0.290.0090.00017.18
8.0.280.0030.00318.46
8.0.270.0040.00417.20
8.0.260.0000.00616.84
8.0.250.0030.00316.84
8.0.240.0070.00016.92
8.0.230.0000.00717.00
8.0.220.0040.00416.87
8.0.210.0070.00016.77
8.0.200.0030.00316.95
8.0.190.0040.00417.01
8.0.180.0030.00316.89
8.0.170.0000.00916.89
8.0.160.0060.00316.88
8.0.150.0030.00316.88
8.0.140.0000.00816.86
8.0.130.0030.00313.28
8.0.120.0000.00716.88
8.0.110.0000.00816.79
8.0.100.0030.00516.99
8.0.90.0000.00716.89
8.0.80.0100.00716.94
8.0.70.0070.00016.78
8.0.60.0000.00716.92
8.0.50.0080.00016.93
8.0.30.0130.01016.93
8.0.20.0120.00717.40
8.0.10.0000.00716.80
8.0.00.0110.00716.64
7.4.330.0000.00515.00
7.4.320.0000.00616.50
7.4.300.0000.00616.63
7.4.290.0000.00716.66
7.4.280.0000.00616.61
7.4.270.0030.00316.56
7.4.260.0040.00416.60
7.4.250.0000.00716.44
7.4.240.0040.00316.46
7.4.230.0000.00716.59
7.4.220.0120.00616.44
7.4.210.0090.00716.60
7.4.200.0070.00016.61
7.4.190.0030.00316.42
7.4.160.0080.00816.54
7.4.150.0100.01017.40
7.4.140.0120.00917.86
7.4.130.0070.01016.72
7.4.120.0090.00816.55
7.4.110.0090.00916.50
7.4.100.0100.00716.46
7.4.90.0110.00516.48
7.4.80.0160.00019.39
7.4.70.0000.01616.38
7.4.60.0090.00616.60
7.4.50.0000.00816.42
7.4.40.0120.00422.77
7.4.30.0120.00416.65
7.4.00.0110.00515.09
7.3.330.0030.00313.27
7.3.320.0000.00613.38
7.3.310.0000.00716.19
7.3.300.0030.00316.34
7.3.290.0000.01516.23
7.3.280.0080.01016.23
7.3.270.0080.00817.40
7.3.260.0120.00616.41
7.3.250.0100.00816.22
7.3.240.0070.01016.21
7.3.230.0120.00616.39
7.3.210.0160.01316.26
7.3.200.0030.01419.39
7.3.190.0120.00616.50
7.3.180.0040.01116.63
7.3.170.0100.00716.63
7.3.160.0110.01116.31
7.3.120.0030.01414.85
7.3.110.0030.01314.67
7.3.100.0080.00815.05
7.3.90.0030.00614.99
7.3.80.0000.01414.81
7.3.70.0030.01214.91
7.3.60.0030.01114.52
7.3.50.0100.00314.55
7.3.40.0030.01014.86
7.3.30.0060.00614.83
7.3.20.0000.01516.62
7.3.10.0070.00716.68
7.3.00.0070.00716.79
7.2.330.0100.00716.79
7.2.320.0090.00916.74
7.2.310.0060.01216.43
7.2.300.0100.00616.79
7.2.290.0060.01216.58
7.2.250.0060.01015.16
7.2.240.0100.01014.88
7.2.230.0060.00315.01
7.2.220.0100.00614.98
7.2.210.0080.00815.09
7.2.200.0060.00314.59
7.2.190.0030.01315.04
7.2.180.0040.01215.16
7.2.170.0000.01615.11
7.2.60.0070.00316.96
7.2.00.0100.00319.44
7.1.330.0110.00615.54
7.1.320.0110.00315.85
7.1.310.0130.00015.64
7.1.300.0100.00715.92
7.1.290.0000.01615.87
7.1.280.0000.01015.73
7.1.270.0030.01315.86
7.1.260.0030.01015.67
7.1.200.0100.00015.64
7.1.100.0060.00917.98
7.1.70.0030.00617.09
7.1.60.0090.00919.82
7.1.50.0070.01316.95
7.1.00.0030.04022.30
7.0.200.0070.00316.91
7.0.140.0100.06722.18
7.0.60.0000.04319.91
7.0.50.0070.05017.88
7.0.40.0030.08020.26
7.0.30.0370.04320.18
7.0.20.0330.07020.32
7.0.10.0200.04720.33
7.0.00.0100.04020.05
5.6.280.0000.07021.05
5.6.210.0070.03720.52
5.6.200.0130.04718.20
5.6.190.0130.08720.61
5.6.180.3800.04020.48
5.6.170.0370.07320.40
5.6.160.0030.09020.50
5.6.150.0070.05318.12
5.6.140.0100.05718.15
5.6.130.0100.04718.19
5.6.120.0000.06721.14
5.6.110.0200.07320.99
5.6.100.0000.04721.01
5.6.90.0130.05020.99
5.6.80.0030.08020.29
5.6.70.4130.04020.37
5.5.350.0200.06720.35
5.5.340.0070.05018.09
5.5.330.0030.08720.57
5.5.320.0200.08020.51
5.5.310.0230.07020.34
5.5.300.0100.03718.08
5.5.290.0000.08718.03
5.5.280.0030.05320.88
5.5.270.0100.08020.84
5.5.260.0130.08020.64
5.5.250.0000.05020.47
5.5.240.0130.07720.00
5.4.450.0170.06019.62
5.4.440.0870.05019.43
5.4.430.0830.06319.55
5.4.420.0270.04019.58
5.4.410.0770.05319.35
5.4.400.0430.04718.54
5.4.390.0300.07718.53
5.4.380.0230.06018.83
5.4.370.0170.05018.80
5.4.360.0230.05718.79
5.4.350.0100.06018.80
5.4.340.0200.05318.79
5.4.320.0070.03812.50
5.4.310.0060.03812.50
5.4.300.0060.03412.50
5.4.290.0080.03812.50
5.4.280.0080.03112.39
5.4.270.0070.04212.40
5.4.260.0200.06318.73
5.4.250.0130.04718.93
5.4.240.0100.04718.72
5.4.230.0100.05018.97
5.4.220.0100.05719.07
5.4.210.0070.05318.72
5.4.200.0030.05318.92
5.4.190.0130.04718.88
5.4.180.0130.06018.63
5.4.170.0170.04318.89
5.4.160.0130.04718.73
5.4.150.0170.05718.74
5.4.140.0100.06316.43
5.4.130.0070.05016.56
5.4.120.0070.05316.42
5.4.110.0030.05316.45
5.4.100.0030.05016.51
5.4.90.0070.05016.47
5.4.80.0070.04716.35
5.4.70.0100.04716.38
5.4.60.0100.04716.45
5.4.50.0070.05016.57
5.4.40.0130.04316.41
5.4.30.0130.04316.54
5.4.20.0000.06016.55
5.4.10.0130.07016.36
5.4.00.0130.04316.04
5.3.290.0070.04612.80
5.3.280.0100.05014.75
5.3.270.0030.06014.82
5.3.260.0030.05714.60
5.3.250.0170.04014.77
5.3.240.0070.05314.77
5.3.230.0030.05314.58
5.3.220.0100.04714.66
5.3.210.0030.05714.64
5.3.200.0000.07314.73
5.3.190.0130.04314.79
5.3.180.0100.07014.78
5.3.170.0100.05014.60
5.3.160.0070.05714.79
5.3.150.0000.05714.73
5.3.140.0070.05014.64
5.3.130.0030.05714.61
5.3.120.0100.05014.40
5.3.110.0130.05014.45
5.3.100.0070.04714.26
5.3.90.0000.05314.00
5.3.80.0100.04713.84
5.3.70.0030.05314.11
5.3.60.0070.04714.07
5.3.50.0070.05014.04
5.3.40.0130.04313.96
5.3.30.0070.05013.81
5.3.20.0170.06013.60
5.3.10.0030.05313.73
5.3.00.0070.05013.66
5.2.170.0070.06011.06
5.2.160.0000.06011.25
5.2.150.0070.04011.15
5.2.140.0070.04011.29
5.2.130.0030.06011.19
5.2.120.0100.04710.93
5.2.110.0070.03711.11
5.2.100.0030.04011.12
5.2.90.0070.05711.11
5.2.80.0030.04011.10
5.2.70.0100.03711.03
5.2.60.0100.03710.95
5.2.50.0000.04710.78
5.2.40.0100.03710.99
5.2.30.0070.05011.13
5.2.20.0000.04310.85
5.2.10.0070.03710.93
5.2.00.0100.05310.89
5.1.60.0070.0339.85
5.1.50.0100.04010.02
5.1.40.0030.0379.92
5.1.30.0070.03710.17
5.1.20.0070.03310.35
5.1.10.0000.03710.03
5.1.00.0070.0379.84
5.0.50.0000.0438.69
5.0.40.0030.0278.50
5.0.30.0130.0438.13
5.0.20.0030.0278.25
5.0.10.0030.0278.08
5.0.00.0000.0438.21
4.4.90.0000.0237.30
4.4.80.0030.0207.30
4.4.70.0100.0207.30
4.4.60.0030.0307.30
4.4.50.0070.0277.30
4.4.40.0030.0337.30
4.4.30.0000.0237.30
4.4.20.0000.0237.30
4.4.10.0070.0177.30
4.4.00.0000.0477.30
4.3.110.0000.0277.30
4.3.100.0070.0237.30
4.3.90.0030.0207.30
4.3.80.0070.0437.30
4.3.70.0030.0207.30
4.3.60.0000.0237.30
4.3.50.0000.0237.30
4.3.40.0030.0437.30
4.3.30.0000.0237.30
4.3.20.0030.0207.30
4.3.10.0030.0207.30
4.3.00.0100.0236.74

preferences:
53.27 ms | 401 KiB | 5 Q