3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ''; $sArr = array(); for ($i = 30000; $i > 0; $i--) { $sArr[] = 'S. '; } $str = implode($sArr);

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.4.20.0100.01020.48
8.4.10.0030.00618.76
8.3.150.0060.01318.31
8.3.140.0030.01317.79
8.3.130.0100.00718.59
8.3.120.0030.00619.95
8.3.110.0030.00720.94
8.3.100.0090.00024.06
8.3.90.0130.00626.77
8.3.80.0030.00617.50
8.3.70.0130.00618.12
8.3.60.0070.01318.30
8.3.50.0070.01617.89
8.3.40.0100.00719.66
8.3.30.0090.00619.71
8.3.20.0040.00421.34
8.3.10.0000.00823.69
8.3.00.0040.00419.84
8.2.260.0120.00419.98
8.2.250.0070.00417.58
8.2.240.0030.00618.06
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00317.25
8.2.190.0070.01017.88
8.2.180.0160.00318.09
8.2.170.0130.00322.96
8.2.160.0100.01321.47
8.2.150.0040.01224.18
8.2.140.0040.00424.66
8.2.130.0060.00320.27
8.2.120.0080.00026.35
8.2.110.0000.01020.80
8.2.100.0060.00618.84
8.2.90.0030.00618.63
8.2.80.0100.00018.63
8.2.70.0000.00918.63
8.2.60.0070.00318.63
8.2.50.0030.00618.50
8.2.40.0090.00019.76
8.2.30.0090.00020.23
8.2.20.0080.00018.95
8.2.10.0000.00819.11
8.2.00.0030.00519.25
8.1.310.0120.00918.29
8.1.300.0160.00022.22
8.1.290.0060.00319.77
8.1.280.0060.01025.92
8.1.270.0030.00623.70
8.1.260.0030.00626.35
8.1.250.0060.00328.09
8.1.240.0000.01124.69
8.1.230.0090.00320.51
8.1.220.0060.00319.14
8.1.210.0060.00318.77
8.1.200.0030.00718.90
8.1.190.0060.00318.46
8.1.180.0070.00418.73
8.1.170.0090.00018.85
8.1.160.0110.00020.24
8.1.150.0080.00021.67
8.1.140.0080.00019.03
8.1.130.0000.01120.54
8.1.120.0060.00318.79
8.1.110.0120.00018.93
8.1.100.0030.00618.79
8.1.90.0040.00418.89
8.1.80.0030.00618.78
8.1.70.0030.00518.78
8.1.60.0000.00919.03
8.1.50.0060.00318.82
8.1.40.0040.00418.89
8.1.30.0030.00619.05
8.1.20.0090.00019.04
8.1.10.0060.00318.95
8.1.00.0030.00618.85
8.0.300.0030.00620.45
8.0.290.0060.00318.00
8.0.280.0100.00019.57
8.0.270.0030.00517.97
8.0.260.0040.00417.91
8.0.250.0060.00318.12
8.0.240.0080.00018.18
8.0.230.0030.00518.17
8.0.220.0080.00418.06
8.0.210.0050.00318.14
8.0.200.0030.00518.14
8.0.190.0060.00318.19
8.0.180.0110.00418.27
8.0.170.0000.01018.23
8.0.160.0000.01018.23
8.0.150.0050.00518.15
8.0.140.0040.00418.21
8.0.130.0030.00314.66
8.0.120.0090.00018.17
8.0.110.0070.00418.04
8.0.100.0050.00518.04
8.0.90.0000.00918.18
8.0.80.0040.01418.14
8.0.70.0030.00618.27
8.0.60.0000.00818.10
8.0.50.0060.00318.00
8.0.30.0090.00918.49
8.0.20.0120.00918.45
8.0.10.0030.00618.30
8.0.00.0090.01417.94
7.4.330.0080.00015.55
7.4.320.0000.00717.63
7.4.300.0040.00417.85
7.4.290.0040.00417.85
7.4.280.0000.00817.89
7.4.270.0030.00617.85
7.4.260.0050.00317.82
7.4.250.0040.00417.72
7.4.240.0000.00817.81
7.4.230.0030.00617.84
7.4.220.0060.00317.73
7.4.210.0120.00917.88
7.4.200.0030.00517.72
7.4.160.0090.01017.84
7.4.150.0100.01017.79
7.4.140.0120.00817.86
7.4.130.0250.02117.87
7.4.120.0160.00617.86
7.4.110.0100.01017.81
7.4.100.0140.00617.78
7.4.90.0190.00717.82
7.4.80.0270.00019.39
7.4.70.0070.01417.86
7.4.60.0120.00917.91
7.4.50.0130.00317.70
7.4.40.0140.00617.84
7.4.00.0080.01316.23
7.3.330.0000.00614.62
7.3.320.0030.00314.49
7.3.310.0000.00817.67
7.3.300.0040.00417.55
7.3.290.0110.01117.61
7.3.280.0120.00717.61
7.3.270.0100.01017.56
7.3.260.0090.01617.56
7.3.250.0100.00917.63
7.3.240.0100.01017.75
7.3.230.0090.00917.76
7.3.210.0150.01518.01
7.3.200.0150.00617.61
7.3.190.0130.01017.88
7.3.180.0070.01117.68
7.3.170.0060.01217.66
7.3.160.0110.01117.75
7.3.120.0100.01316.42
7.3.110.0100.00716.32
7.3.100.0100.01016.19
7.3.90.0070.01716.44
7.3.80.0060.01216.13
7.3.70.0060.00616.29
7.3.60.0060.01016.21
7.3.50.0070.01016.14
7.3.40.0110.01116.11
7.3.30.0040.01216.23
7.3.20.0070.00718.32
7.3.10.0070.00918.51
7.3.00.0030.01418.48
7.2.330.0090.01117.85
7.2.320.0120.00917.86
7.2.310.0190.00817.63
7.2.300.0060.01317.93
7.2.290.0130.00617.81
7.2.250.0150.00616.00
7.2.240.0170.00716.38
7.2.230.0130.00315.89
7.2.220.0030.01316.25
7.2.210.0000.01616.23
7.2.200.0070.00715.80
7.2.190.0000.01215.66
7.2.180.0040.01516.11
7.2.170.0090.01316.23
7.2.130.0060.00918.82
7.2.120.0070.01018.87
7.2.110.0110.01118.82
7.2.100.0030.01418.65
7.2.90.0000.01018.80
7.2.80.0110.00418.92
7.2.70.0400.01417.92
7.2.60.0270.00818.21
7.2.50.0410.00817.91
7.2.40.0420.00317.81
7.2.30.0350.01417.99
7.2.20.0430.01218.29
7.2.10.0430.00818.32
7.2.00.0470.01018.20
7.1.330.0100.00617.51
7.1.320.0070.01617.80
7.1.310.0000.01517.48
7.1.300.0090.00317.91
7.1.290.0120.00317.92
7.1.280.0060.01517.59
7.1.270.0090.01217.74
7.1.260.0040.01217.86
7.1.250.0040.01117.43
7.1.200.0030.01317.87
7.1.170.0560.00715.79
7.1.160.0630.00715.50
7.1.150.0800.00715.96
7.1.140.0680.00716.82
7.1.130.0580.00716.90
7.1.120.0550.01016.93
7.1.110.0570.01216.63
7.1.100.0550.01016.32
7.1.90.0610.01016.42
7.1.80.0490.00816.53
7.1.70.0490.01515.91
7.1.60.0760.02234.21
7.1.50.0970.01733.98
7.1.40.0780.01534.00
7.1.30.0920.01733.99
7.1.20.0760.01633.90
7.1.10.0670.01015.85
7.1.00.0580.01115.88

preferences:
77.89 ms | 403 KiB | 5 Q