3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=null; $fortune = 'The rain in Spain<br> -- whoknows?'; if (strpos($fortune,"--") !== FALSE) { preg_replace("/(--.+)/m","<p style='text-align:right'>" . $1 . "</p>",$matches); var_dump($matches); }

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.350.2500.05019.22
5.4.340.2370.03719.13
5.4.320.2530.04319.14
5.4.310.2630.04019.02
5.4.300.2400.03718.87
5.4.290.2300.04319.13
5.4.280.2270.03719.06
5.4.270.2400.04019.13
5.4.260.2670.04018.91
5.4.250.2270.03319.08
5.4.240.2400.03718.98
5.4.230.2200.03319.30
5.4.220.2430.04719.19
5.4.210.2230.03319.13
5.4.200.2400.03718.97
5.4.190.2400.04019.07
5.4.180.2470.03319.08
5.4.170.2400.03718.99
5.4.160.2330.03719.08
5.4.150.2400.04719.29
5.4.140.2370.04716.36
5.4.130.2470.03716.35
5.4.120.2470.04016.65
5.4.110.2530.03716.45
5.4.100.2500.04316.60
5.4.90.2600.03716.36
5.4.80.1700.04316.44
5.4.70.0030.05716.53
5.4.60.0030.03716.17
5.4.50.0000.07716.33
5.4.40.1930.04316.36
5.4.30.2500.04016.50
5.4.20.2670.03716.51
5.4.10.2500.04016.32
5.4.00.2630.03315.77
5.3.290.2470.03314.61
5.3.280.2270.03714.55
5.3.270.2430.03314.50
5.3.260.2370.03314.54
5.3.250.2300.03714.52
5.3.240.2300.03714.45
5.3.230.2430.04014.46
5.3.220.2300.03314.43
5.3.210.2400.03314.55
5.3.200.2300.03314.44
5.3.190.2400.03714.61
5.3.180.2700.04014.39
5.3.170.2500.03014.52
5.3.160.2800.04014.43
5.3.150.2770.04014.42
5.3.140.2270.03714.41
5.3.130.2470.04014.39
5.3.120.2400.05014.39
5.3.110.2470.03714.47
5.3.100.2530.03713.98
5.3.90.2570.03313.88
5.3.80.2370.03713.98
5.3.70.2200.04013.86
5.3.60.2230.03313.79
5.3.50.2400.04013.78
5.3.40.2530.04713.93
5.3.30.0030.07313.76
5.3.20.0030.07313.54
5.3.10.0170.06313.75
5.3.00.1200.03013.55
5.2.170.2130.03311.00
5.2.160.2300.02711.01
5.2.150.2200.02711.20
5.2.140.2030.03010.99
5.2.130.1870.03710.95
5.2.120.2200.02711.15
5.2.110.2130.02710.96
5.2.100.2100.03010.98
5.2.90.1900.02311.15
5.2.80.1830.02711.14
5.2.70.2000.04010.98
5.2.60.2000.03711.22
5.2.50.2000.03310.86
5.2.40.1730.02710.86
5.2.30.1700.03011.02
5.2.20.1730.03010.82
5.2.10.1700.03310.97
5.2.00.1700.02310.69
5.1.60.1770.0279.87
5.1.50.1530.0239.89
5.1.40.1430.02710.06
5.1.30.1470.02710.26
5.1.20.1770.03010.27
5.1.10.1730.02710.04
5.1.00.1500.02710.19
5.0.50.0770.0208.48
5.0.40.0930.0278.34
5.0.30.0870.0338.27
5.0.20.0800.0178.11
5.0.10.0800.0178.15
5.0.00.0800.0308.31
4.4.90.0770.0177.62
4.4.80.1030.0107.62
4.4.70.0930.0207.62
4.4.60.0830.0207.62
4.4.50.0900.0207.62
4.4.40.0730.0277.62
4.4.30.0430.0177.62
4.4.20.0030.0137.62
4.4.10.0000.0177.62
4.4.00.0000.0307.62
4.3.110.0030.0137.62
4.3.100.0030.0107.62
4.3.90.0000.0137.62
4.3.80.0000.0237.62
4.3.70.0000.0137.62
4.3.60.0000.0137.62
4.3.50.0030.0137.62
4.3.40.0570.0237.62
4.3.30.0370.0177.62
4.3.20.0400.0137.62
4.3.10.0400.0137.62
4.3.00.0430.0207.62

preferences:
144.1 ms | 1394 KiB | 7 Q