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.2270.03319.01
5.4.260.1970.04719.11
5.4.250.2070.04019.19
5.4.240.1830.03018.97
5.4.230.2070.04319.14
5.4.220.1600.03718.96
5.4.210.2370.04719.08
5.4.200.2130.04019.00
5.4.190.1900.03318.94
5.4.180.2030.04719.13
5.4.170.2100.04019.21
5.4.160.1900.04318.82
5.4.150.2070.04319.16
5.4.140.1770.04016.34
5.4.130.2100.03716.50
5.4.120.2300.03716.45
5.4.110.2170.03316.28
5.4.100.1970.03716.21
5.4.90.2030.04316.57
5.4.80.2270.04316.34
5.4.70.2030.03716.23
5.4.60.2130.03316.49
5.4.50.2070.04016.34
5.4.40.2130.03716.54
5.4.30.2070.04716.32
5.4.20.2230.03316.39
5.4.10.2000.04316.53
5.4.00.2170.03715.86
5.3.280.2130.04314.49
5.3.270.1930.02714.55
5.3.260.1930.03014.57
5.3.250.2000.04014.45
5.3.240.1830.03714.57
5.3.230.2030.04314.47
5.3.220.1800.04014.41
5.3.210.1870.04014.43
5.3.200.1830.04014.61
5.3.190.1870.03714.42
5.3.180.2070.03314.52
5.3.170.1870.03314.61
5.3.160.1570.03714.52
5.3.150.1900.03714.50
5.3.140.1900.04014.50
5.3.130.0030.03714.50
5.3.120.0030.03714.60
5.3.110.1100.06014.66
5.3.100.1970.04014.14
5.3.90.1870.03313.96
5.3.80.2000.04713.87
5.3.70.1870.03713.81
5.3.60.2030.04313.88
5.3.50.2070.03313.82
5.3.40.2300.03013.72
5.3.30.1970.03313.77
5.3.20.2170.04313.46
5.3.10.1800.03313.68
5.3.00.2170.04013.52
5.2.170.1830.03010.99
5.2.160.1770.03311.30
5.2.150.1700.03311.16
5.2.140.1570.03710.97
5.2.130.1700.03710.96
5.2.120.1500.02711.04
5.2.110.1500.02710.93
5.2.100.1500.03011.04
5.2.90.1500.02710.95
5.2.80.1670.02711.11
5.2.70.1700.04011.05
5.2.60.1800.02710.95
5.2.50.1770.03011.03
5.2.40.1270.02311.00
5.2.30.1400.03710.81
5.2.20.1200.02710.82
5.2.10.1370.03710.77
5.2.00.1430.03710.61
5.1.60.1300.0309.89
5.1.50.1430.03010.01
5.1.40.1470.02310.07
5.1.30.1330.03310.50
5.1.20.1470.03010.25
5.1.10.1370.0239.96
5.1.00.1370.02710.04
5.0.50.0700.0278.67
5.0.40.0000.0378.45
5.0.30.0000.0478.20
5.0.20.0000.0378.32
5.0.10.0070.0278.09
5.0.00.0030.0578.08
4.4.90.0070.0137.77
4.4.80.0000.0207.77
4.4.70.0030.0177.77
4.4.60.1070.0177.77
4.4.50.0870.0207.77
4.4.40.1000.0337.77
4.4.30.0930.0277.77
4.4.20.0800.0207.77
4.4.10.1000.0177.77
4.4.00.0970.0337.77
4.3.110.1030.0277.77
4.3.100.1030.0207.77
4.3.90.0870.0177.77
4.3.80.0830.0207.77
4.3.70.0970.0207.77
4.3.60.1070.0177.77
4.3.50.1030.0207.77
4.3.40.0770.0277.77
4.3.30.0400.0237.77
4.3.20.0330.0207.77
4.3.10.0070.0377.77
4.3.00.0000.0207.77

preferences:
140.14 ms | 1394 KiB | 7 Q