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' => 0, ), array( 'position' => NULL, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { trigger_error('test'); 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.60.0100.01018.11
8.3.50.0110.00521.21
8.3.40.0070.00718.84
8.3.30.0110.00319.04
8.3.20.0070.00020.34
8.3.10.0060.00321.96
8.3.00.0050.00322.36
8.2.180.0150.00316.75
8.2.170.0150.00322.96
8.2.160.0070.00718.93
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0040.00420.32
8.2.100.0060.00617.72
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0020.00518.04
8.2.50.0000.00918.07
8.2.40.0060.00320.07
8.2.30.0000.00718.27
8.2.20.0060.00317.64
8.2.10.0020.00517.64
8.2.00.0050.00317.82
8.1.280.0170.00325.92
8.1.270.0030.00522.02
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00022.13
8.1.230.0000.01122.15
8.1.220.0040.00417.88
8.1.210.0060.00318.77
8.1.200.0100.00017.38
8.1.190.0040.00417.53
8.1.180.0000.00818.65
8.1.170.0000.00818.59
8.1.160.0070.00022.15
8.1.150.0070.00018.67
8.1.140.0050.00317.52
8.1.130.0000.00717.74
8.1.120.0000.00717.40
8.1.110.0040.00417.52
8.1.100.0070.00017.46
8.1.90.0000.00817.47
8.1.80.0020.00517.47
8.1.70.0000.00817.46
8.1.60.0040.00417.61
8.1.50.0030.00517.44
8.1.40.0040.00417.50
8.1.30.0030.00617.56
8.1.20.0040.00417.62
8.1.10.0020.00517.54
8.1.00.0030.00617.54
8.0.300.0040.00418.77
8.0.290.0070.00017.16
8.0.280.0040.00418.45
8.0.270.0070.00017.19
8.0.260.0000.00616.89
8.0.250.0030.00317.07
8.0.240.0040.00417.03
8.0.230.0000.00717.00
8.0.220.0040.00416.95
8.0.210.0030.00316.97
8.0.200.0000.00716.93
8.0.190.0040.00416.96
8.0.180.0080.00016.82
8.0.170.0030.00616.83
8.0.160.0040.00416.95
8.0.150.0000.00816.74
8.0.140.0030.00416.86
8.0.130.0000.00613.27
8.0.120.0040.00416.86
8.0.110.0040.00416.89
8.0.100.0040.00416.97
8.0.90.0030.00516.71
8.0.80.0140.00416.91
8.0.70.0040.00416.87
8.0.60.0050.00316.87
8.0.50.0000.00816.95
8.0.30.0070.01117.05
8.0.20.0100.01317.40
8.0.10.0000.00717.14
8.0.00.0110.00816.75
7.4.330.0020.00215.00
7.4.320.0000.00616.54
7.4.300.0060.00016.44
7.4.290.0070.00016.64
7.4.280.0000.00716.63
7.4.270.0040.00416.52
7.4.260.0030.00316.50
7.4.250.0040.00416.62
7.4.240.0020.00516.45
7.4.230.0070.00016.64
7.4.220.0110.00616.59
7.4.210.0050.00916.54
7.4.200.0000.00716.62
7.4.190.0050.00216.40
7.4.160.0060.01616.31
7.4.150.0140.00717.40
7.4.140.0130.00817.86
7.4.130.0050.01416.70
7.4.120.0100.00716.48
7.4.110.0100.00716.46
7.4.100.0120.00916.44
7.4.90.0140.00316.48
7.4.80.0070.01019.39
7.4.70.0140.00516.44
7.4.60.0070.01016.50
7.4.50.0080.00016.65
7.4.40.0110.00422.77
7.4.30.0090.00616.46
7.4.00.0130.00315.07
7.3.330.0030.00313.35
7.3.320.0000.00513.12
7.3.310.0000.00716.21
7.3.300.0000.00716.36
7.3.290.0110.00316.23
7.3.280.0060.00916.18
7.3.270.0040.01317.40
7.3.260.0060.01316.39
7.3.250.0110.00916.41
7.3.240.0140.00316.39
7.3.230.0130.00616.59
7.3.210.0070.01116.27
7.3.200.0180.00319.39
7.3.190.0100.00716.28
7.3.180.0060.00916.48
7.3.170.0040.01116.48
7.3.160.0080.00816.38
7.3.120.0030.01214.54
7.3.10.0130.00716.37
7.3.00.0080.01216.15
7.2.330.0160.00316.68
7.2.320.0070.01216.45
7.2.310.0030.01316.66
7.2.300.0070.01016.58
7.2.290.0060.01216.66
7.2.130.0180.00416.88
7.2.120.0130.00916.38
7.2.110.0170.00316.30
7.2.100.0090.01116.38
7.2.90.0100.01616.13
7.2.80.0210.00316.08
7.2.70.0130.00716.57
7.2.60.0080.00916.59
7.2.50.0110.01116.60
7.2.40.0160.00416.29
7.2.30.0120.00916.17
7.2.20.0120.00615.98
7.2.10.0140.00616.25
7.2.00.0080.00817.93
7.1.250.0100.00715.20
7.1.200.0070.00715.71
7.1.100.0030.01018.14
7.1.70.0080.00017.02
7.1.60.0200.00319.82
7.1.50.0120.00916.83
7.1.00.0070.05322.54
7.0.200.0040.00416.64
7.0.140.0030.07322.18
7.0.60.0070.09019.87
7.0.50.0100.06017.88
7.0.40.0230.07020.02
7.0.30.0330.06720.26
7.0.20.0370.07320.19
7.0.10.0370.04720.21
7.0.00.0070.06320.06
5.6.280.0100.07021.07
5.6.210.0100.07320.65
5.6.200.0030.08318.15
5.6.190.0000.05020.61
5.6.180.3230.03320.64
5.6.170.0230.07720.59
5.6.160.0130.07020.52
5.6.150.0030.08718.19
5.6.140.0100.06718.15
5.6.130.0000.09018.28
5.6.120.0070.03720.99
5.6.110.0100.04021.12
5.6.100.0100.07321.14
5.6.90.0130.08321.13
5.6.80.0130.07020.40
5.6.70.0400.07020.38
5.5.350.0170.05720.43
5.5.340.0200.07017.99
5.5.330.0000.08720.47
5.5.320.0230.08320.27
5.5.310.0230.04720.27
5.5.300.0070.07718.07
5.5.290.0100.08017.98
5.5.280.0070.08020.97
5.5.270.0100.06720.68
5.5.260.0100.05320.74
5.5.250.0100.06720.62
5.5.240.0070.05720.19
5.4.450.0800.07019.61
5.4.440.0570.06719.16
5.4.430.0770.05719.37
5.4.420.0100.05019.61
5.4.410.0770.05019.48
5.4.400.0400.05018.49
5.4.390.0330.05718.78
5.4.380.0270.06018.47
5.4.370.0030.06318.50
5.4.360.0170.04718.61
5.4.350.0130.05718.62
5.4.340.0100.05318.84
5.4.320.0090.03712.51
5.4.310.0090.04012.50
5.4.300.0080.03612.51
5.4.290.0040.05412.50
5.4.280.0070.03512.41
5.4.270.0080.03712.41
5.4.260.0000.06018.77
5.4.250.0130.04719.09
5.4.240.0030.05318.84
5.4.230.0000.05718.99
5.4.220.0170.04318.79
5.4.210.0070.05319.09
5.4.200.0070.05719.00
5.4.190.0070.05319.02
5.4.180.0170.04018.99
5.4.170.0030.05318.95
5.4.160.0100.05018.63
5.4.150.0000.06318.98
5.4.140.0170.04716.45
5.4.130.0070.05016.43
5.4.120.0070.06716.59
5.4.110.0130.04716.50
5.4.100.0070.05016.49
5.4.90.0070.05016.33
5.4.80.0100.05716.47
5.4.70.0070.05016.31
5.4.60.0030.05016.61
5.4.50.0070.05016.50
5.4.40.0230.04016.64
5.4.30.0130.05016.35
5.4.20.0100.07316.50
5.4.10.0030.05716.52
5.4.00.0200.05315.83
5.3.290.0050.03912.80
5.3.280.0030.06014.68
5.3.270.0070.05014.68
5.3.260.0170.04714.83
5.3.250.0070.05314.70
5.3.240.0170.04314.61
5.3.230.0130.04314.57
5.3.220.0170.04314.56
5.3.210.0170.06714.66
5.3.200.0030.05314.65
5.3.190.0170.04314.73
5.3.180.0070.06014.57
5.3.170.0170.04014.55
5.3.160.0200.04314.66
5.3.150.0130.07014.66
5.3.140.0130.04314.64
5.3.130.0170.04314.57
5.3.120.0170.04714.45
5.3.110.0070.05314.61
5.3.100.0070.05014.04
5.3.90.0070.05014.05
5.3.80.0100.05014.09
5.3.70.0100.04714.10
5.3.60.0030.05313.83
5.3.50.0070.05314.04
5.3.40.0100.06313.79
5.3.30.0030.05713.75
5.3.20.0030.05013.88
5.3.10.0130.04013.87
5.3.00.0070.05713.54
5.2.170.0070.06011.16
5.2.160.0030.04011.30
5.2.150.0070.04011.14
5.2.140.0070.04011.03
5.2.130.0070.04010.86
5.2.120.0070.04011.03
5.2.110.0030.04311.02
5.2.100.0170.02711.01
5.2.90.0070.04311.02
5.2.80.0030.04311.24
5.2.70.0070.06011.10
5.2.60.0030.04011.04
5.2.50.0030.05710.95
5.2.40.0100.03710.94
5.2.30.0030.04710.89
5.2.20.0030.04711.07
5.2.10.0030.05310.64
5.2.00.0030.06310.48
5.1.60.0030.0479.76
5.1.50.0100.0409.92
5.1.40.0070.04010.03
5.1.30.0030.03710.55
5.1.20.0100.04310.13
5.1.10.0100.03710.13
5.1.00.0130.04710.25
5.0.50.0030.0378.48
5.0.40.0100.0278.46
5.0.30.0000.0477.99
5.0.20.0030.0278.26
5.0.10.0100.0208.12
5.0.00.0070.0378.07
4.4.90.0000.0237.30
4.4.80.0000.0237.30
4.4.70.0030.0207.30
4.4.60.0000.0237.30
4.4.50.0070.0207.30
4.4.40.0030.0337.30
4.4.30.0030.0207.30
4.4.20.0100.0237.30
4.4.10.0030.0307.30
4.4.00.0000.0407.30
4.3.110.0030.0207.30
4.3.100.0000.0237.30
4.3.90.0030.0237.30
4.3.80.0070.0277.30
4.3.70.0000.0337.30
4.3.60.0000.0207.30
4.3.50.0000.0277.30
4.3.40.0030.0307.30
4.3.30.0000.0237.30
4.3.20.0000.0237.30
4.3.10.0000.0207.30
4.3.00.0200.0176.75

preferences:
44.62 ms | 401 KiB | 5 Q