3v4l.org

run code in 200+ PHP versions simultaneously
<?php $string1 = str_repeat('x', 100); $string2 = str_repeat('y', 100); $string3 = str_repeat('z', 100); $mark = microtime(true); for($i = 0; $i < 2000; $i++) { ob_start(); for($j = 0; $j < 2000; $j++) echo $string1, $string2, $string3; ob_get_clean(); } echo microtime(true) - $mark;
based on Yodlf

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.0070.39619.21
7.1.70.0130.36817.04
7.1.60.0030.41519.48
7.1.50.0870.46816.91
7.1.00.0000.57322.28
7.0.200.0030.37716.76
7.0.60.0070.54321.16
7.0.50.0000.58718.99
7.0.40.0000.53319.90
7.0.30.0600.56020.02
7.0.20.0270.54320.33
7.0.10.0230.46020.30
7.0.00.0070.51020.44
5.6.280.2800.86722.13
5.6.210.4400.65721.51
5.6.200.4300.67719.26
5.6.190.4400.69721.43
5.6.180.4470.64321.32
5.6.170.4830.66321.25
5.6.160.4170.61021.27
5.6.150.4500.70719.26
5.6.140.4530.63019.34
5.6.130.4400.65319.30
5.6.120.4600.70322.20
5.6.110.4830.61722.18
5.6.100.4700.66322.16
5.6.90.4270.68322.14
5.6.80.4530.69321.57
5.6.70.8300.54021.55
5.5.350.4470.66021.36
5.5.340.5370.74019.17
5.5.330.4700.56321.25
5.5.320.0400.67021.61
5.5.310.5670.72021.24
5.5.300.5030.66019.14
5.5.290.4870.67019.06
5.5.280.4700.70021.86
5.5.270.7770.56321.84
5.5.260.4770.57321.84
5.5.250.4100.67021.71
5.5.240.5100.64721.21
5.4.450.4100.66320.55
5.4.440.7900.61320.32
5.4.430.6200.70320.55
5.4.420.6431.01720.29
5.4.410.7301.12720.19
5.4.400.5530.79020.15
5.4.390.5170.68320.14
5.4.380.4570.74319.94
5.4.370.4930.69320.14
5.4.360.4330.82020.00
5.4.350.5300.85019.96
5.4.340.3870.58020.07
5.4.320.0330.93320.37
5.4.310.4270.62719.93
5.4.300.4530.66719.91
5.4.290.3670.58720.10
5.4.280.3930.57320.14
5.4.270.3770.57719.96
5.4.260.3970.53320.02
5.4.250.3430.62319.91
5.4.240.5330.68320.10
5.4.230.4330.85720.23
5.4.220.5170.85319.90
5.4.210.6230.97020.04
5.4.200.4900.82317.76
5.4.190.4630.73319.98
5.4.180.4630.76719.92
5.4.170.4670.68020.12
5.4.160.5070.69320.23
5.4.150.5430.70720.23
5.4.140.5770.68017.46
5.4.130.4500.64717.23
5.4.120.3600.50717.44
5.4.110.4230.65017.52
5.4.100.3700.55017.16
5.4.90.5100.64717.34
5.4.80.3900.56017.32
5.4.70.3970.63717.45
5.4.60.5600.80717.53
5.4.50.7371.05717.47
5.4.40.5000.69317.44
5.4.30.4900.61317.59
5.4.20.5070.61717.51
5.3.290.6100.90715.84
5.3.280.7430.82015.79
5.3.270.7130.76715.73
5.3.260.7570.81715.78
5.3.250.7230.91715.75
5.3.240.7700.85715.80
5.3.230.6930.80015.69
5.3.220.7300.90715.59
5.3.210.5970.90715.64
5.3.200.6130.88315.64
5.3.190.7430.74715.64
5.3.180.6200.84015.64
5.3.170.6970.84715.82
5.3.160.7570.84715.77
5.3.150.6970.80715.66