3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { $lastError = error_get_last(); if (strpos($lastError, '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.0070.01116.61
8.3.50.0090.01221.92
8.3.40.0120.00318.83
8.3.30.0030.01318.53
8.3.20.0070.00020.25
8.3.10.0000.00823.53
8.3.00.0040.00419.38
8.2.180.0120.00917.00
8.2.170.0090.00622.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00017.38
8.2.120.0000.00826.35
8.2.110.0040.00420.31
8.2.100.0040.00717.93
8.2.90.0030.00619.11
8.2.80.0070.00417.97
8.2.70.0030.00717.60
8.2.60.0030.00617.93
8.2.50.0030.00518.07
8.2.40.0040.00419.47
8.2.30.0000.00720.59
8.2.20.0000.00817.76
8.2.10.0030.00618.13
8.2.00.0040.00418.04
8.1.280.0100.01025.92
8.1.270.0060.00322.08
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00023.82
8.1.230.0060.00617.65
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0000.00718.79
8.1.160.0040.00421.95
8.1.150.0040.00418.76
8.1.140.0000.00819.59
8.1.130.0040.00417.61
8.1.120.0050.00317.50
8.1.110.0000.00717.50
8.1.100.0000.00717.48
8.1.90.0000.00817.36
8.1.80.0000.00817.45
8.1.70.0000.00717.38
8.1.60.0040.00417.50
8.1.50.0000.00817.41
8.1.40.0060.00317.36
8.1.30.0090.00017.70
8.1.20.0040.00417.53
8.1.10.0030.00517.63
8.1.00.0080.00017.40
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.35
8.0.270.0040.00417.20
8.0.260.0000.00717.18
8.0.250.0040.00416.91
8.0.240.0040.00417.00
8.0.230.0070.00016.84
8.0.220.0000.00716.96
8.0.210.0030.00316.89
8.0.200.0000.00717.09
8.0.190.0080.00017.04
8.0.180.0050.00316.97
8.0.170.0030.00516.99
8.0.160.0040.00416.95
8.0.150.0000.00716.79
8.0.140.0040.00416.83
8.0.130.0030.00313.34
8.0.120.0000.00816.91
8.0.110.0000.00816.91
8.0.100.0000.00816.95
8.0.90.0000.00817.03
8.0.80.0040.01116.88
8.0.70.0030.00516.84
8.0.60.0040.00416.99
8.0.50.0000.00717.02
8.0.30.0110.00417.13
8.0.20.0070.01117.40
8.0.10.0080.00017.09
8.0.00.0120.00716.92
7.4.330.0050.00016.71
7.4.320.0000.00616.61
7.4.300.0030.00316.45
7.4.290.0000.00716.60
7.4.280.0000.00716.59
7.4.270.0030.00316.53
7.4.260.0040.00416.61
7.4.250.0000.00716.58
7.4.240.0000.00716.55
7.4.230.0000.00716.72
7.4.220.0030.01816.68
7.4.210.0090.00916.46
7.4.200.0000.00716.55
7.4.160.0060.00916.52
7.4.150.0060.01117.40
7.4.140.0150.00917.86
7.4.130.0080.01016.56
7.4.120.0110.00616.45
7.4.110.0060.01216.48
7.4.100.0130.00916.61
7.4.90.0070.01016.48
7.4.80.0060.01019.39
7.4.70.0210.00416.54
7.4.60.0100.00616.48
7.4.50.0090.00616.27
7.4.40.0110.00516.60
7.4.30.0130.00616.68
7.4.00.0030.01214.93
7.3.330.0000.00513.26
7.3.320.0030.00413.29
7.3.310.0030.00616.34
7.3.300.0040.00416.19
7.3.290.0000.00716.17
7.3.280.0080.01016.32
7.3.270.0150.00617.40
7.3.260.0110.00616.29
7.3.250.0090.01116.43
7.3.240.0110.00816.39
7.3.230.0070.01116.39
7.3.210.0060.01016.26
7.3.200.0080.01616.42
7.3.190.0110.01216.29
7.3.180.0130.00316.43
7.3.170.0050.01316.45
7.3.160.0120.00316.32
7.3.120.0130.00714.97
7.3.110.0030.01414.67
7.3.100.0030.01014.71
7.3.90.0130.00314.81
7.3.80.0070.00714.71
7.3.70.0060.01114.86
7.3.60.0060.00914.80
7.3.50.0050.00514.88
7.3.40.0000.01514.85
7.3.30.0130.00614.57
7.3.20.0070.01016.69
7.3.10.0080.00816.63
7.3.00.0060.00916.52
7.2.330.0040.01616.52
7.2.320.0100.01316.78
7.2.310.0130.00316.56
7.2.300.0130.00416.70
7.2.290.0150.00316.48
7.2.250.0030.01514.88
7.2.240.0070.01115.08
7.2.230.0000.01515.06
7.2.220.0090.00615.06
7.2.210.0080.00414.86
7.2.200.0070.00715.13
7.2.190.0070.00715.14
7.2.180.0060.00614.89
7.2.170.0100.01015.16
7.2.60.0070.00716.91
7.2.00.0160.00419.11
7.1.330.0100.00315.80
7.1.320.0040.00715.68
7.1.310.0000.01415.73
7.1.300.0120.00015.73
7.1.290.0060.01015.39
7.1.280.0080.00815.76
7.1.270.0070.01115.69
7.1.260.0070.00715.68
7.1.200.0000.01515.58
7.1.100.0000.01217.82
7.1.70.0130.00616.96
7.1.60.0140.01019.36
7.1.50.0030.00816.79
7.1.00.0030.07722.34
7.0.200.0000.01016.56
7.0.60.0000.04319.80
7.0.50.0070.08317.99
7.0.40.0070.06720.11
7.0.30.0570.06320.25
7.0.20.0370.07320.12
7.0.10.0100.06020.20
7.0.00.0030.04020.06
5.6.280.0000.03721.02
5.6.210.0000.04720.51
5.6.200.0130.06318.20
5.6.190.0070.04320.49
5.6.180.0400.04320.55
5.6.170.0230.05720.49
5.6.160.0100.08020.57
5.6.150.0170.07018.23
5.6.140.0100.07718.23
5.6.130.0070.04018.28
5.6.120.0030.07720.99
5.6.110.0070.08721.01
5.6.100.0170.04720.97
5.6.90.0030.04020.93
5.6.80.0100.05720.38
5.5.350.4130.03020.35
5.5.340.0130.08017.98
5.5.330.0070.07020.41
5.5.320.0030.04020.19
5.5.310.0230.08020.42
5.5.300.0130.07717.97
5.5.290.0070.05317.97
5.5.280.0030.05020.98
5.5.270.0070.05720.79
5.5.260.0030.05720.78
5.5.250.0070.06720.69
5.5.240.0200.04020.19

preferences:
51.66 ms | 401 KiB | 5 Q