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.2.00.0070.58919.35
7.1.70.0000.47116.99
7.1.60.0170.45219.48
7.1.50.0100.48816.87
7.1.00.0070.58022.40
7.0.200.0030.45216.80
7.0.60.0130.55721.06
7.0.50.0030.51318.96
7.0.40.0070.58019.96
7.0.30.0200.59720.20
7.0.20.0330.52320.02
7.0.10.0200.50720.17
7.0.00.0070.56719.99
5.6.300.7081.10421.67
5.6.280.2500.81322.08
5.6.210.4670.69321.66
5.6.200.4670.67019.23
5.6.190.4270.70021.45
5.6.180.4430.71721.38
5.6.170.4630.72321.45
5.6.160.4630.61321.45
5.6.150.4100.78019.32
5.6.140.4800.69019.33
5.6.130.4400.63019.11
5.6.120.5100.67322.30
5.6.110.4500.70722.31
5.6.100.4270.65022.31
5.6.90.4770.68322.15
5.6.80.4530.70321.69
5.6.70.4370.65321.60
5.5.350.4330.64321.48
5.5.340.4670.66319.15
5.5.330.3930.67021.22
5.5.320.4770.66321.35
5.5.310.5100.65321.24
5.5.300.4570.66019.15
5.5.290.4970.64019.04
5.5.280.5030.66721.71
5.5.270.3930.83721.89
5.5.260.4500.78721.81
5.5.250.4630.71321.82
5.5.240.4530.73021.24
5.4.450.4100.64720.45
5.4.440.7830.63320.23
5.4.430.4470.67320.37
5.4.420.7630.99020.29
5.4.410.6930.98020.19
5.4.400.7701.06720.01
5.4.390.6570.90019.92
5.4.380.6570.91019.90
5.4.370.6571.00019.99
5.4.360.7530.89719.92
5.4.350.0000.89020.30
5.4.340.6870.84319.98
5.4.320.7100.97019.98
5.4.310.6300.86020.10
5.4.300.7000.76720.10
5.4.290.5871.01720.02
5.4.280.6070.95720.06
5.4.270.7070.84719.89
5.4.260.7530.89020.11
5.4.250.8030.77319.91
5.4.240.7330.91720.11
5.4.230.6500.92020.14
5.4.220.5430.68320.07
5.4.210.5800.63720.13
5.4.200.5130.74717.67
5.4.190.4770.71720.06
5.4.180.5330.70020.04
5.4.170.5100.68320.14
5.4.160.5370.72320.07
5.4.150.5000.73320.16
5.4.140.5070.72317.22
5.4.130.5500.77317.24
5.4.120.6370.92317.37
5.4.110.6300.82717.44
5.4.100.7230.83717.24
5.4.90.6630.95717.55
5.4.80.6831.12717.38
5.4.70.6970.86717.18
5.4.60.7070.93717.49
5.4.50.5530.70317.53
5.4.40.5230.71017.44
5.4.30.6630.62317.44
5.4.20.6200.65717.40

preferences:
30.77 ms | 403 KiB | 5 Q