3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this','is','just','a','test',',','only and only a test','...','cycled many many times','again','this','is','just','a','test',',','only and only a test','...','cycled many many times';; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for commas"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this'.'is'.'just'.'a'.'test'.','.'only and only a test'.'...'.'cycled many many times'.'again'.'this'.'is'.'just'.'a'.'test'.','.'only and only a test'.'...'.'cycled many many times'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for dots";

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)
7.2.00.0130.05933.21
7.1.70.0070.05331.13
7.1.60.0230.07831.45
7.1.50.0140.05531.20
7.1.00.0130.15036.35
7.0.200.0560.04330.50
7.0.140.0230.13336.04
7.0.110.0100.09335.70
7.0.100.0170.09335.64
7.0.90.0070.09335.70
7.0.80.0100.09335.59
7.0.70.0130.08335.59
7.0.60.0070.09335.80
7.0.50.0030.10036.24
7.0.40.0200.11332.11
7.0.30.0130.13732.14
7.0.20.0100.14732.22
7.0.10.0030.12332.06
7.0.00.0270.13732.18
5.6.280.0100.22734.48
5.6.250.0070.15034.33
5.6.240.0100.15034.26
5.6.230.0130.13034.11
5.6.220.0100.13733.49
5.6.210.0030.14033.93
5.6.200.0100.13734.02
5.6.190.0100.20334.69
5.6.180.0170.21034.14
5.6.170.0170.21733.34
5.6.160.0170.18336.90
5.6.150.0170.17334.99
5.6.140.0170.19034.39
5.6.130.0100.19334.03
5.6.120.0170.17335.24
5.6.110.0100.17733.95
5.6.100.0130.19335.07
5.6.90.0070.14033.87
5.6.80.0070.19034.32
5.6.70.0070.19033.34
5.6.60.0200.16334.42
5.6.50.0170.18734.31
5.6.40.0130.17733.61
5.6.30.0130.21033.50
5.6.20.0170.20033.02
5.6.10.0070.19333.82
5.6.00.0200.19034.02
5.5.380.0130.13736.14
5.5.370.0100.14333.78
5.5.360.0100.14333.99
5.5.350.0030.14332.67
5.5.340.0100.20334.94
5.5.330.0200.18734.22
5.5.320.0200.17035.03
5.5.310.0230.17733.07
5.5.300.0070.17033.34
5.5.290.0100.19034.75
5.5.280.0100.17736.39
5.5.270.0200.19334.28
5.5.260.0170.15036.50
5.5.250.0070.19734.07
5.5.240.0130.18333.26
5.5.230.0100.21033.41
5.5.220.0100.20734.48
5.5.210.0100.18734.23
5.5.200.0170.18734.21
5.5.190.0370.19729.57
5.5.180.0200.16332.96
5.5.160.0270.18033.62
5.5.150.0100.13733.73
5.5.140.0470.12333.62
5.5.130.0170.19033.23
5.5.120.0030.18333.18
5.5.110.0130.19332.68
5.5.100.0230.17332.88
5.5.90.0000.17732.85
5.5.80.0000.16734.11
5.5.70.0030.19732.72
5.5.60.0100.19334.23
5.5.50.0130.17034.39
5.5.40.0100.19032.98
5.5.30.0170.17333.38
5.5.20.0130.18033.65
5.5.10.0130.18333.91
5.5.00.0100.17332.71
5.4.450.0130.19033.11
5.4.440.0170.21033.09
5.4.430.0070.17332.02
5.4.420.0170.17332.04
5.4.410.0070.18732.16
5.4.400.0070.21732.02
5.4.390.0170.19332.20
5.4.380.0070.17732.87
5.4.370.0070.20332.70
5.4.360.0200.19732.05
5.4.350.0070.19031.64
5.4.340.0070.19732.53
5.4.320.0100.21032.33
5.4.310.0400.20331.16
5.4.300.0170.16032.54
5.4.290.0130.13731.54
5.4.280.0230.17731.44
5.4.270.0030.20031.47
5.4.260.0400.18731.25
5.4.250.0030.17734.86
5.4.240.0200.22331.91
5.4.230.0130.17732.91
5.4.220.0130.21731.19
5.4.210.0070.20032.76
5.4.200.0030.19032.68
5.4.190.0170.16331.71
5.4.180.0030.18331.35
5.4.170.0030.18731.95
5.4.160.0000.19031.51
5.4.150.0030.15331.68
5.4.140.0200.17729.43
5.4.130.0130.16329.16
5.4.120.0170.19729.58
5.4.110.0170.19729.97
5.4.100.0170.16329.46
5.4.90.0130.20029.90
5.4.80.0200.15030.06
5.4.70.0170.17029.13
5.4.60.0100.17729.60
5.4.50.0170.17729.40
5.4.40.0130.17330.43
5.4.30.0100.17028.86
5.4.20.0170.13329.04
5.4.10.0100.18729.33
5.4.00.0300.20727.91
5.3.290.0070.11028.96
5.3.280.0100.18327.67
5.3.270.0270.14327.62
5.3.260.0130.14027.22
5.3.250.0170.17027.05
5.3.240.0030.14728.97
5.3.230.0070.15326.88
5.3.220.0170.15028.37
5.3.210.0130.15028.50
5.3.200.0170.16328.65
5.3.190.0100.16026.96
5.3.180.0130.17728.82
5.3.170.0200.15028.90
5.3.160.0070.15730.60
5.3.150.0070.16028.72
5.3.140.0070.17027.77
5.3.130.0070.17027.84
5.3.120.0100.15728.93
5.3.110.0130.15727.98
5.3.100.0130.17026.31
5.3.90.0030.11727.71
5.3.80.0130.09327.40
5.3.70.0070.16326.70
5.3.60.0170.15327.05
5.3.50.0000.15027.55
5.3.40.0070.16026.97
5.3.30.0170.17027.02
5.3.20.0030.17027.34
5.3.10.0070.16726.77
5.3.00.0100.14727.89
5.2.170.0070.16323.83
5.2.160.0030.18325.17
5.2.150.0130.13324.27
5.2.140.0230.14724.49
5.2.130.0000.11724.77
5.2.120.0070.15323.75
5.2.110.0200.15724.05
5.2.100.0100.17026.98
5.2.90.0100.17023.68
5.2.80.0070.18324.14
5.2.70.0070.17024.22
5.2.60.0170.13023.78
5.2.50.0130.16725.32
5.2.40.0130.17324.02
5.2.30.0070.16325.12
5.2.20.0070.13323.95
5.2.10.0270.13723.78
5.2.00.0100.16725.17
5.1.60.0130.16022.84
5.1.50.0170.17323.03
5.1.40.0130.16723.09
5.1.30.0070.17323.49
5.1.20.0170.16723.91
5.1.10.0100.12323.75
5.1.00.0130.12323.92
5.0.50.0270.18022.16
5.0.40.0170.18022.09
5.0.30.0170.18320.65
5.0.20.0130.17320.43
5.0.10.0130.19321.81
5.0.00.0170.18320.68
4.4.90.0130.17718.42
4.4.80.0070.19718.83
4.4.70.0030.18018.10
4.4.60.0230.19318.08
4.4.50.0130.18319.43
4.4.40.0030.23019.62
4.4.30.0230.18019.81
4.4.20.0170.16319.86
4.4.10.0100.18319.38
4.4.00.0100.20019.23
4.3.110.0100.18719.02
4.3.100.0170.19319.68
4.3.90.0330.15718.96
4.3.80.0070.20019.50
4.3.70.0200.20019.35
4.3.60.0100.22319.77
4.3.50.0170.17018.74
4.3.40.0030.19019.66
4.3.30.0170.15718.36
4.3.20.0100.22017.32
4.3.10.0030.19716.86
4.3.00.0070.19017.76

preferences:
36.67 ms | 401 KiB | 5 Q