3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "apple""; #echo $search; echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); ?>

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)
5.4.270.0170.07019.10
5.4.260.0000.08019.10
5.4.250.0070.06319.10
5.4.240.0030.05719.00
5.4.230.0030.06318.91
5.4.220.0200.05019.14
5.4.210.0170.06318.94
5.4.200.0070.07719.02
5.4.190.0070.07719.02
5.4.180.0070.06019.00
5.4.170.0000.07019.23
5.4.160.0100.05319.04
5.4.150.0070.06019.22
5.4.140.0070.06016.72
5.4.130.0100.07316.61
5.4.120.0100.07316.53
5.4.110.0070.07316.64
5.4.100.0130.07016.42
5.4.90.0170.05316.65
5.4.80.0100.05316.56
5.4.70.0100.05316.41
5.4.60.0130.07716.67
5.4.50.0100.07016.65
5.4.40.0100.06016.45
5.4.30.0100.06016.64
5.4.20.0130.06716.63
5.4.10.0100.07016.65
5.4.00.0100.05015.85
5.3.280.0100.05714.52
5.3.270.0100.06314.60
5.3.260.0130.06714.79
5.3.250.0200.05714.54
5.3.240.0130.05314.67
5.3.230.0130.04714.78
5.3.220.0030.05714.61
5.3.210.0070.07314.70
5.3.200.0000.07314.61
5.3.190.0070.05314.38
5.3.180.0030.05714.63
5.3.170.0100.06714.55
5.3.160.0100.07714.77
5.3.150.0100.05014.55
5.3.140.0100.05314.75
5.3.130.0170.06014.74
5.3.120.0100.05714.71
5.3.110.0000.06314.36
5.3.100.0030.05714.02
5.3.90.0100.05714.00
5.3.80.0030.05714.09
5.3.70.0100.06314.20
5.3.60.0030.07014.16
5.3.50.0100.05013.96
5.3.40.0030.05713.76
5.3.30.0000.06714.07
5.3.20.0100.05313.77
5.3.10.0030.05713.70
5.3.00.0070.06713.69
5.2.170.0030.06011.30
5.2.160.0070.05011.25
5.2.150.0070.05711.25
5.2.140.0130.05711.36
5.2.130.0200.03011.03
5.2.120.0070.04711.14
5.2.110.0000.05011.08
5.2.100.0030.04711.32
5.2.90.0000.06711.08
5.2.80.0000.04711.24
5.2.70.0100.03711.07
5.2.60.0130.05311.20
5.2.50.0100.05711.16
5.2.40.0100.05010.93
5.2.30.0130.04011.02
5.2.20.0100.05010.89
5.2.10.0100.04711.08
5.2.00.0130.05010.84
5.1.60.0130.03710.27
5.1.50.0000.04010.07
5.1.40.0030.04010.09
5.1.30.0070.03310.54
5.1.20.0000.04310.48
5.1.10.0070.0339.94
5.1.00.0030.04010.26
5.0.50.0030.0278.67
5.0.40.0130.0308.72
5.0.30.0070.0538.10
5.0.20.0070.0378.39
5.0.10.0000.0338.04
5.0.00.0070.0508.45
4.4.90.0000.0337.43
4.4.80.0000.0237.43
4.4.70.0000.0337.43
4.4.60.0100.0277.43
4.4.50.0030.0237.43
4.4.40.0030.0477.43
4.4.30.0130.0177.43
4.4.20.0000.0277.43
4.4.10.0030.0237.43
4.4.00.0100.0337.43
4.3.110.0070.0307.43
4.3.100.0070.0177.43
4.3.90.0030.0307.43
4.3.80.0030.0377.43
4.3.70.0030.0207.43
4.3.60.0030.0307.43
4.3.50.0000.0277.43
4.3.40.0100.0337.43
4.3.30.0000.0307.43
4.3.20.0100.0207.43
4.3.10.0030.0237.43
4.3.00.0170.0278.24

preferences:
137.38 ms | 1394 KiB | 7 Q