3v4l.org

run code in 300+ 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;

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.4.00.0070.80015.70
7.3.120.0100.80815.77
7.3.110.0100.79415.68
7.3.100.0070.76515.95
7.3.90.0070.56416.00
7.3.80.0070.76215.95
7.3.70.0100.69316.05
7.3.60.0100.73416.04
7.3.50.0000.70616.07
7.3.40.0130.64816.03
7.3.30.0030.59216.07
7.3.20.0030.57116.76
7.3.10.0000.66716.69
7.3.00.0070.61316.69
7.2.250.0000.84716.31
7.2.240.0070.64815.90
7.2.230.0070.62315.86
7.2.220.0030.76516.45
7.2.210.0100.69916.30
7.2.200.0070.71116.13
7.2.190.0030.77016.25
7.2.180.0030.72216.32
7.2.170.0070.71015.84
7.2.00.0070.39619.21
7.1.330.0070.72715.82
7.1.320.0130.68115.82
7.1.310.0030.83015.70
7.1.300.0000.71315.76
7.1.290.0020.70015.69
7.1.280.0000.84915.63
7.1.270.0000.82515.58
7.1.260.0030.70815.94
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

preferences:
57.44 ms | 400 KiB | 5 Q