3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $range = range(1, 1000000); array_map(function($val) {str_replace("XXX", $val, "this is tha val XXX");}, $range);

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0810.01648.45
7.2.00.0080.01251.01
7.1.200.0610.01347.52
7.1.100.6900.01048.39
7.1.70.0070.01449.06
7.1.60.0130.02949.24
7.1.50.0140.02448.54
7.1.00.0070.08054.31
7.0.201.5700.01347.23
7.0.140.0070.07753.95
7.0.60.0430.07752.23
7.0.50.0230.08748.20
7.0.40.0270.08050.38
7.0.30.0830.07750.13
7.0.20.0630.06050.30
7.0.10.0170.04350.26
7.0.00.0300.08350.23
5.6.280.0170.12085.50
5.6.210.0270.12385.36
5.6.200.0370.13082.79
5.6.190.0270.08385.07
5.6.180.0330.07085.03
5.6.170.0600.11784.88
5.6.160.0300.11384.98
5.6.150.0270.12382.63
5.6.140.0370.05382.76
5.6.130.0270.10082.61
5.6.120.0300.08785.64
5.6.110.0370.12385.60
5.6.100.0300.07785.62
5.6.90.0230.10785.75
5.6.80.0270.10385.05
5.5.350.0270.12084.96
5.5.340.0470.09082.61
5.5.330.0130.08784.63
5.5.320.0530.11384.77
5.5.310.0530.10784.77
5.5.300.0270.08082.60
5.5.290.0330.12782.60
5.5.280.0230.07085.30
5.5.270.0330.07785.46
5.5.260.0330.08385.51
5.5.250.0330.06085.43
5.5.240.0470.11384.90
5.4.450.0200.07783.81
5.4.440.0170.07383.92
5.4.430.0470.07083.91
5.4.420.0400.11383.91
5.4.410.0430.10383.73
5.4.400.0370.11083.42
5.4.390.0330.08383.82
5.4.380.0270.12383.80
5.4.370.0330.11083.82
5.4.360.0270.11383.63
5.4.350.0270.11783.43
5.4.340.0470.11783.68
5.4.320.0130.08083.81
5.4.310.0270.12083.82
5.4.300.0430.10783.62
5.4.290.0200.10783.74
5.4.280.0500.10083.66
5.4.270.0270.13083.65
5.4.260.0300.11383.53
5.4.250.0370.10783.64
5.4.240.0400.11083.55
5.4.230.0430.09783.55
5.4.220.0270.07083.42
5.4.210.0400.12083.59
5.4.200.0370.06383.43
5.4.190.0270.06783.61
5.4.180.0170.07383.80
5.4.170.0230.12083.58
5.4.160.0370.11783.50
5.4.150.0170.08383.57
5.4.140.0200.07081.12
5.4.130.0200.06780.98
5.4.120.0230.08080.96
5.4.110.0100.08081.15
5.4.100.0200.07780.98
5.4.90.0230.07780.91
5.4.80.0230.06381.13
5.4.70.0200.06780.86
5.4.60.0200.06380.84
5.4.50.0200.06380.98
5.4.40.0300.05780.99
5.4.30.0230.07381.03
5.4.20.0170.06781.01
5.4.10.0230.06080.96
5.4.00.0300.05380.36
5.3.290.0530.09377.83
5.3.280.0230.11377.80
5.3.270.0300.06377.81
5.3.260.0170.08777.80
5.3.250.0330.07777.77
5.3.240.0100.07777.77
5.3.230.0330.05777.77
5.3.220.0170.07377.77
5.3.210.0300.05377.76
5.3.200.0200.07377.75
5.3.190.0430.05777.64
5.3.180.0300.05778.39
5.3.170.0330.05777.81
5.3.160.0300.05777.73
5.3.150.0330.08077.71
5.3.140.0130.07077.79
5.3.130.0200.06777.74
5.3.120.0130.08077.71
5.3.110.0270.06077.70
5.3.100.0230.06077.12
5.3.90.0200.06777.84
5.3.80.0270.07377.15
5.3.70.0200.06377.16
5.3.60.0230.06377.11
5.3.50.0330.06377.03
5.3.40.0270.06077.07
5.3.30.0300.06777.03
5.3.20.0200.07376.86
5.3.10.0330.09776.90
5.3.00.0370.09777.37
5.2.170.0070.02711.05
5.2.160.0030.03011.04
5.2.150.0000.03311.03
5.2.140.0070.02711.02
5.2.130.0000.05011.07
5.2.120.0030.06011.04
5.2.110.0030.04711.07
5.2.100.0000.04310.96
5.2.90.0070.06310.96
5.2.80.0100.04711.25
5.2.70.0070.05311.06
5.2.60.0070.05711.05
5.2.50.0030.06010.94
5.2.40.0100.05710.92
5.2.30.0070.03010.85
5.2.20.0030.03710.91
5.2.10.0100.06010.80
5.2.00.0000.06310.71
5.1.60.0070.0379.89
5.1.50.0070.05310.14
5.1.40.0130.04710.04
5.1.30.0000.05310.34
5.1.20.0030.04310.34
5.1.10.0130.04710.07
5.1.00.0070.05010.06
5.0.50.0000.0539.18
5.0.40.0030.0339.18
5.0.30.0070.0609.18
5.0.20.0130.0309.18
5.0.10.0030.0239.18
5.0.00.0030.0379.18
4.4.90.0070.0339.18
4.4.80.0030.0379.18
4.4.70.0030.0379.18
4.4.60.0130.0209.18
4.4.50.0070.0309.18
4.4.40.0030.0479.18
4.4.30.0030.0279.18
4.4.20.0000.0409.18
4.4.10.0000.0339.18
4.4.00.0030.0439.18
4.3.110.0000.0239.18
4.3.100.0000.0209.18
4.3.90.0030.0209.18
4.3.80.0000.0439.18
4.3.70.0030.0339.18
4.3.60.0070.0309.18
4.3.50.0070.0279.18
4.3.40.0000.0509.18
4.3.30.0070.0239.18
4.3.20.0030.0339.18
4.3.10.0000.0209.18
4.3.00.0000.0339.18