3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { $lastError = error_get_last(); if ($lastError && strpos($lastError['message'], 'exceeded memory') !== false /* && extension_loaded('xdebug')*/) { echo 'you had xdebug enabled, consider disabling it!'; } }); ini_set('memory_limit', '2M'); str_repeat('a', 999999999);

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.0040.01116.75
8.3.50.0110.01118.05
8.3.40.0060.00818.83
8.3.30.0070.00718.71
8.3.20.0050.00220.35
8.3.10.0030.00623.52
8.3.00.0050.00319.51
8.2.180.0110.00816.63
8.2.170.0140.00022.96
8.2.160.0030.01320.55
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0090.00017.63
8.2.120.0060.00326.35
8.2.110.0060.00320.52
8.2.100.0080.00317.91
8.2.90.0040.00419.21
8.2.80.0030.00617.97
8.2.70.0090.00017.63
8.2.60.0000.00918.05
8.2.50.0060.00318.07
8.2.40.0030.00619.02
8.2.30.0070.00020.63
8.2.20.0030.00617.66
8.2.10.0040.00418.04
8.2.00.0030.00518.01
8.1.280.0070.01125.92
8.1.270.0060.00622.24
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00723.74
8.1.230.0090.00320.65
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00422.02
8.1.150.0000.00718.83
8.1.140.0040.00419.54
8.1.130.0030.00317.72
8.1.120.0030.00317.43
8.1.110.0040.00417.32
8.1.100.0040.00417.35
8.1.90.0040.00417.52
8.1.80.0070.00017.42
8.1.70.0000.00717.43
8.1.60.0040.00417.58
8.1.50.0050.00317.58
8.1.40.0100.00017.52
8.1.30.0060.00317.62
8.1.20.0040.00417.65
8.1.10.0050.00317.35
8.1.00.0070.00017.39
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0000.00718.32
8.0.270.0030.00317.26
8.0.260.0000.00617.31
8.0.250.0030.00316.98
8.0.240.0030.00517.03
8.0.230.0000.00717.04
8.0.220.0000.00616.99
8.0.210.0030.00316.87
8.0.200.0000.00616.99
8.0.190.0040.00417.06
8.0.180.0040.00416.95
8.0.170.0060.00316.89
8.0.160.0040.00416.91
8.0.150.0070.00016.92
8.0.140.0000.00716.80
8.0.130.0030.00613.35
8.0.120.0000.00816.90
8.0.110.0040.00416.89
8.0.100.0070.00016.85
8.0.90.0000.00716.95
8.0.80.0130.00716.96
8.0.70.0050.00316.79
8.0.60.0040.00416.91
8.0.50.0040.00416.88
8.0.30.0090.01017.09
8.0.20.0120.00717.40
8.0.10.0000.00717.20
8.0.00.0130.00616.82
7.4.330.0050.00016.84
7.4.320.0000.00616.53
7.4.300.0030.00316.47
7.4.290.0040.00416.61
7.4.280.0000.00816.45
7.4.270.0070.00016.62
7.4.260.0070.00016.49
7.4.250.0050.00216.52
7.4.240.0030.00416.52
7.4.230.0000.00716.69
7.4.220.0090.00916.64
7.4.210.0110.00616.61
7.4.200.0030.00316.25
7.4.160.0090.00616.48
7.4.150.0110.00617.40
7.4.140.0130.01017.86
7.4.130.0120.00816.50
7.4.120.0040.01316.65
7.4.110.0100.00716.53
7.4.100.0140.00716.49
7.4.90.0060.01316.62
7.4.80.0130.00619.39
7.4.70.0070.01116.53
7.4.60.0080.00816.59
7.4.50.0070.00716.52
7.4.40.0070.01016.52
7.4.30.0070.01016.55
7.4.00.0100.00715.08
7.3.330.0050.00013.24
7.3.320.0000.00713.38
7.3.310.0000.00916.18
7.3.300.0030.00316.33
7.3.290.0030.00316.27
7.3.280.0050.01216.33
7.3.270.0030.01317.40
7.3.260.0040.01416.57
7.3.250.0120.00516.47
7.3.240.0120.00616.31
7.3.230.0060.01616.43
7.3.210.0100.00716.22
7.3.200.0100.00716.30
7.3.190.0100.00616.51
7.3.180.0120.00916.48
7.3.170.0100.00716.47
7.3.160.0100.00616.43
7.3.10.0140.00316.63
7.3.00.0060.00716.74
7.2.330.0080.00816.71
7.2.320.0070.01116.57
7.2.310.0110.01116.57
7.2.300.0110.00716.92
7.2.290.0110.01116.83
7.2.130.0040.00816.72
7.2.120.0150.00016.92
7.2.110.0060.00616.54
7.2.100.0090.00017.13
7.2.90.0030.01217.17
7.2.80.0100.00316.88
7.2.70.0000.01117.09
7.2.60.0090.00616.72
7.2.50.0070.00716.60
7.2.40.0040.01116.41
7.2.30.0060.00616.64
7.2.20.0030.01016.52
7.2.10.0030.01016.55
7.2.00.0080.00918.03
7.1.250.0030.01215.68
7.1.200.0040.00815.63
7.1.100.0000.01217.94
7.1.70.0130.00817.17
7.1.60.0090.01219.36
7.1.50.0090.01316.95
7.1.00.0070.07322.51
7.0.200.0030.00316.76
7.0.60.0070.04019.85
7.0.50.0100.07317.86
7.0.40.0070.08720.42
7.0.30.0270.05320.15
7.0.20.0330.06320.25
7.0.10.0030.09020.05
7.0.00.0100.03320.09
5.6.280.0030.03320.86
5.6.210.0070.04020.61
5.6.200.0070.08018.15
5.6.190.0070.07720.53
5.6.180.0430.06320.47
5.6.170.0270.06720.47
5.6.160.0030.09020.50
5.6.150.0070.04318.18
5.6.140.0070.08318.18
5.6.130.0130.06318.24
5.6.120.0170.08320.90
5.6.110.0230.06721.11
5.6.100.0030.06020.89
5.6.90.0070.03720.96
5.6.80.0030.04720.54
5.5.350.4030.04320.38
5.5.340.0130.07318.04
5.5.330.0000.05020.41
5.5.320.0030.04020.34
5.5.310.0230.04020.32
5.5.300.0100.06017.95
5.5.290.0100.08017.95
5.5.280.0170.07720.80
5.5.270.0030.07320.86
5.5.260.0070.08320.86
5.5.250.0070.03720.68
5.5.240.0200.07320.27

preferences:
75.46 ms | 400 KiB | 5 Q