3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr) { $bt = debug_backtrace(); var_dump($errstr); }); $displays = array( array( 'position' => 1, ), array( 'position' => new stdClass, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { 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.40.0110.00318.84
8.3.30.0140.00019.06
8.3.20.0070.00020.39
8.3.10.0040.00422.09
8.3.00.0030.00522.40
8.2.170.0090.00922.96
8.2.160.0090.00619.19
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0160.00319.46
8.2.110.0090.00022.21
8.2.100.0060.00617.84
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0000.01318.07
8.2.40.0040.00419.88
8.2.30.0000.00818.13
8.2.20.0000.00817.71
8.2.10.0000.00717.75
8.2.00.0080.00017.70
8.1.270.0030.00522.09
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00020.46
8.1.230.0080.00417.51
8.1.220.0040.00417.78
8.1.210.0090.00018.77
8.1.200.0050.00517.24
8.1.190.0040.00417.54
8.1.180.0030.00518.75
8.1.170.0060.00318.71
8.1.160.0000.00722.06
8.1.150.0000.00718.64
8.1.140.0000.00717.52
8.1.130.0050.00217.73
8.1.120.0000.00717.52
8.1.110.0040.00417.35
8.1.100.0000.00717.46
8.1.90.0040.00417.43
8.1.80.0030.00317.37
8.1.70.0000.00717.36
8.1.60.0000.00917.49
8.1.50.0060.00317.54
8.1.40.0000.00717.57
8.1.30.0000.00817.52
8.1.20.0040.00417.59
8.1.10.0030.00617.46
8.1.00.0060.00317.56
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0000.00717.18
8.0.260.0030.00316.90
8.0.250.0070.00017.00
8.0.240.0040.00417.02
8.0.230.0030.00517.01
8.0.220.0040.00316.99
8.0.210.0040.00416.91
8.0.200.0000.00817.09
8.0.190.0050.00316.99
8.0.180.0040.00417.04
8.0.170.0030.00616.98
8.0.160.0000.00716.98
8.0.150.0050.00216.92
8.0.140.0030.00416.82
8.0.130.0050.00013.38
8.0.120.0030.00616.91
8.0.110.0080.00016.78
8.0.100.0040.00417.00
8.0.90.0000.00717.00
8.0.80.0060.00916.88
8.0.70.0040.00416.91
8.0.60.0090.00017.00
8.0.50.0040.00417.00
8.0.30.0090.01117.23
8.0.20.0120.00717.40
8.0.10.0030.00616.92
8.0.00.0110.01116.74
7.4.330.0000.00515.00
7.4.320.0000.00716.61
7.4.300.0060.00016.60
7.4.290.0000.00716.53
7.4.280.0030.00316.65
7.4.270.0000.00716.39
7.4.260.0030.00316.60
7.4.250.0000.00816.60
7.4.240.0000.00716.56
7.4.230.0040.00416.45
7.4.220.0170.00716.60
7.4.210.0060.01016.61
7.4.200.0000.00716.33
7.4.190.0080.00016.38
7.4.160.0080.00816.75
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0080.00816.50
7.4.120.0180.00316.71
7.4.110.0190.00016.66
7.4.100.0180.00416.49
7.4.90.0170.00716.63
7.4.80.0140.00319.39
7.4.70.0070.01016.51
7.4.60.0150.00616.52
7.4.50.0030.00616.32
7.4.40.0070.01022.77
7.4.30.0030.01316.55
7.4.00.0080.00814.89
7.3.330.0020.00213.25
7.3.320.0020.00213.31
7.3.310.0030.00316.28
7.3.300.0070.00016.25
7.3.290.0110.00516.33
7.3.280.0080.00916.27
7.3.270.0150.00317.40
7.3.260.0170.00616.43
7.3.250.0090.00916.44
7.3.240.0100.00716.23
7.3.230.0100.00716.39
7.3.210.0130.00316.46
7.3.200.0140.00319.39
7.3.190.0090.01216.41
7.3.180.0070.01016.46
7.3.170.0060.00916.27
7.3.160.0100.00716.29
7.3.120.0070.01114.67
7.3.10.0060.00316.76
7.3.00.0030.01016.62
7.2.330.0070.01016.54
7.2.320.0060.01616.50
7.2.310.0070.01016.58
7.2.300.0090.00616.44
7.2.290.0090.00616.68
7.2.130.0030.00616.91
7.2.120.0090.00316.83
7.2.110.0070.01417.02
7.2.100.0040.00716.78
7.2.90.0060.00616.53
7.2.80.0070.00716.68
7.2.70.0060.00616.80
7.2.60.0070.00716.93
7.2.50.0040.00816.47
7.2.40.0060.00616.95
7.2.30.0030.01016.62
7.2.20.0030.00617.09
7.2.10.0100.00316.61
7.2.00.0060.00618.16
7.1.250.0060.01215.59
7.1.200.0130.00015.83
7.1.100.0000.01117.87
7.1.70.0070.00316.77
7.1.60.0040.02119.82
7.1.50.0070.01717.05
7.1.00.0030.07722.54
7.0.200.0030.00316.63
7.0.140.0030.07321.92
7.0.60.0070.08019.90
7.0.50.0070.06017.83
7.0.40.0100.09020.18
7.0.30.0300.05320.11
7.0.20.0230.05720.33
7.0.10.0400.06720.06
7.0.00.0000.09020.30
5.6.280.0030.07321.11
5.6.210.0100.07320.68
5.6.200.0130.05318.16
5.6.190.0100.07020.67
5.6.180.3770.04720.39
5.6.170.0400.06720.54
5.6.160.0170.07320.45
5.6.150.0070.08018.18
5.6.140.0070.04718.11
5.6.130.0030.08718.18
5.6.120.0000.04320.90
5.6.110.0030.09020.97
5.6.100.0070.08321.01
5.6.90.0130.06720.95
5.6.80.0200.07020.49
5.6.70.4530.04020.39
5.5.350.0130.08020.45
5.5.340.0030.08318.01
5.5.330.0070.08320.41
5.5.320.0230.08720.42
5.5.310.0230.05720.34
5.5.300.0030.08318.04
5.5.290.0030.08317.92
5.5.280.0200.07720.97
5.5.270.0100.05720.77
5.5.260.0000.07320.76
5.5.250.0070.08020.62
5.5.240.0100.06320.29
5.4.450.0900.06019.48
5.4.440.0900.04319.59
5.4.430.0800.06319.47
5.4.420.0770.05319.48
5.4.410.0670.05319.45
5.4.400.0300.06018.73
5.4.390.0370.07018.56
5.4.380.0230.05718.80
5.4.370.0000.06318.56
5.4.360.0270.05318.73
5.4.350.0100.05718.70
5.4.340.0200.04318.84
5.4.320.0070.04212.51
5.4.310.0060.05412.50
5.4.300.0120.03912.51
5.4.290.0100.04012.50
5.4.280.0100.03712.40
5.4.270.0060.04412.40
5.4.260.0030.05318.84
5.4.250.0100.05018.99
5.4.240.0130.04319.00
5.4.230.0070.05318.96
5.4.220.0030.05718.80
5.4.210.0100.05018.75
5.4.200.0000.05719.02
5.4.190.0130.04318.90
5.4.180.0070.05319.01
5.4.170.0030.05718.78
5.4.160.0100.05018.99
5.4.150.0030.06018.64
5.4.140.0030.05716.30
5.4.130.0030.05316.25
5.4.120.0070.05016.39
5.4.110.0130.04016.41
5.4.100.0130.06316.41
5.4.90.0100.06316.48
5.4.80.0070.04716.39
5.4.70.0130.04316.51
5.4.60.0030.05316.39
5.4.50.0100.04716.50
5.4.40.0070.07016.44
5.4.30.0070.06716.47
5.4.20.0000.06016.62
5.4.10.0100.04716.52
5.4.00.0030.06015.90
5.3.290.0070.05012.80
5.3.280.0000.06314.78
5.3.270.0130.05314.75
5.3.260.0100.04714.77
5.3.250.0070.05014.70
5.3.240.0030.05314.74
5.3.230.0030.05314.68
5.3.220.0100.04714.65
5.3.210.0070.05014.59
5.3.200.0070.06314.54
5.3.190.0100.06014.59
5.3.180.0030.05314.57
5.3.170.0100.05014.73
5.3.160.0070.06314.55
5.3.150.0170.04314.47
5.3.140.0230.05314.47
5.3.130.0130.06014.62
5.3.120.0200.06314.57
5.3.110.0030.06014.61
5.3.100.0100.05314.13
5.3.90.0070.07014.12
5.3.80.0030.05014.25
5.3.70.0100.04314.11
5.3.60.0170.06014.18
5.3.50.0000.06314.04
5.3.40.0000.06714.12
5.3.30.0030.05313.98
5.3.20.0030.06313.93
5.3.10.0100.04713.87
5.3.00.0000.05313.82
5.2.170.0030.04311.14
5.2.160.0100.05011.14
5.2.150.0000.04710.97
5.2.140.0100.05711.05
5.2.130.0070.03711.09
5.2.120.0100.03310.93
5.2.110.0100.03711.00
5.2.100.0070.05311.02
5.2.90.0100.03311.21
5.2.80.0070.04011.10
5.2.70.0030.04011.24
5.2.60.0100.03311.16
5.2.50.0030.04011.03
5.2.40.0070.03311.03
5.2.30.0030.04010.88
5.2.20.0000.04310.94
5.2.10.0130.03310.78
5.2.00.0030.04010.56
5.1.60.0030.03310.05
5.1.50.0070.0309.99
5.1.40.0030.0339.83
5.1.30.0000.03710.41
5.1.20.0100.04010.11
5.1.10.0070.04010.01
5.1.00.0000.04010.25
5.0.50.0130.0308.57
5.0.40.0030.0278.49
5.0.30.0000.0438.30
5.0.20.0070.0238.12
5.0.10.0000.0308.00
5.0.00.0030.0408.24
4.4.90.0030.0207.30
4.4.80.0100.0137.30
4.4.70.0070.0177.30
4.4.60.0000.0307.30
4.4.50.0100.0277.30
4.4.40.0000.0377.30
4.4.30.0030.0277.30
4.4.20.0070.0177.30
4.4.10.0000.0277.30
4.4.00.0030.0307.30
4.3.110.0100.0137.30
4.3.100.0000.0237.30
4.3.90.0000.0207.30
4.3.80.0000.0337.30
4.3.70.0000.0277.30
4.3.60.0000.0207.30
4.3.50.0000.0237.30
4.3.40.0000.0337.30
4.3.30.0030.0207.30
4.3.20.0030.0207.30
4.3.10.0000.0237.30
4.3.00.0070.0306.75

preferences:
41.96 ms | 400 KiB | 5 Q