3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Sorry that meant to say hungover and feeling sorry for myself. 😩"; $str = "I can spend upto £40 a week on cigarettes ... £160 a month. I could go on holiday for that ... ☀ðŸ˜" $pattern = '/[😩]/i'; $str = preg_replace($pattern, '', $str); echo $str;

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.240.0330.07019.21
5.4.230.0370.06719.09
5.4.220.0300.06319.13
5.4.210.0270.07719.14
5.4.200.0270.04719.13
5.4.190.0400.03719.05
5.4.180.0300.04319.15
5.4.170.0300.05018.90
5.4.160.0300.07319.20
5.4.150.0330.06019.20
5.4.140.0400.06716.38
5.4.130.0430.03316.66
5.4.120.0500.05716.33
5.4.110.0270.04016.26
5.4.100.0370.06316.54
5.4.90.0430.05716.28
5.4.80.0400.06316.36
5.4.70.0300.05016.34
5.4.60.0300.05316.53
5.4.50.0400.05716.18
5.4.40.0300.03316.51
5.4.30.0370.04316.55
5.4.20.0270.03316.50
5.4.10.0400.03316.51
5.4.00.0330.04015.82
5.3.280.0330.07014.54
5.3.270.0330.04714.46
5.3.260.0370.05314.58
5.3.250.0230.04714.55
5.3.240.0400.03714.55
5.3.230.0500.04314.64
5.3.220.0270.06714.59
5.3.210.0400.05314.50
5.3.200.0330.07314.53
5.3.190.0370.06014.66
5.3.180.0430.03714.55
5.3.170.0330.07014.44
5.3.160.0300.05014.41
5.3.150.0330.04714.54
5.3.140.0300.04014.58
5.3.130.0330.07014.39
5.3.120.0330.04714.41
5.3.110.0400.06314.60
5.3.100.0300.07013.97
5.3.90.0300.05313.88
5.3.80.0370.05313.96
5.3.70.0400.05713.89
5.3.60.0270.04313.80
5.3.50.0400.02313.72
5.3.40.0270.04014.04
5.3.30.0300.06713.84
5.3.20.0370.06713.78
5.3.10.0330.07013.59
5.3.00.0300.05313.54

preferences:
133.63 ms | 1394 KiB | 7 Q