3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movie = array('node_title' => "Worst string in the word:$&+/,;=?@\"{}[]<>#@|\\^~"; ) echo preg_replace('/[^A-Za-z0-9\-]/', '', str_replace(" ","-",$movie["node_title"]));

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.0230.04318.85
5.4.340.0200.05018.85
5.4.320.0270.07018.82
5.4.310.0270.07318.98
5.4.300.0200.04719.08
5.4.290.0300.06319.11
5.4.280.0170.04018.96
5.4.270.0300.06718.87
5.4.260.0200.06719.24
5.4.250.0270.06718.94
5.4.240.0370.03319.08
5.4.230.0170.08319.15
5.4.220.0230.04718.84
5.4.210.0200.05319.24
5.4.200.0270.03319.34
5.4.190.0270.06319.21
5.4.180.0200.06019.14
5.4.170.0170.05019.21
5.4.160.0130.04718.98
5.4.150.0170.06719.14
5.4.140.0230.06016.36
5.4.130.0330.06316.32
5.4.120.0300.05316.66
5.4.110.0200.06016.58
5.4.100.0300.05016.55
5.4.90.0300.05016.29
5.4.80.0200.04316.54
5.4.70.0200.04016.52
5.4.60.0230.04716.34
5.4.50.0370.06016.39
5.4.40.0200.07016.32
5.4.30.0230.04716.38
5.4.20.0230.07316.42
5.4.10.0270.06316.48
5.4.00.0330.03715.96
5.3.290.0270.04314.63
5.3.280.0200.04714.54
5.3.270.0200.06014.44
5.3.260.0370.05314.54
5.3.250.0230.05714.45
5.3.240.0300.06714.57
5.3.230.0270.06014.64
5.3.220.0330.06014.45
5.3.210.0170.08714.50
5.3.200.0170.08014.47
5.3.190.0230.07314.52
5.3.180.0230.06714.65
5.3.170.0230.04314.42
5.3.160.0270.05014.54
5.3.150.0330.05314.41
5.3.140.0300.04014.51
5.3.130.0330.06314.51
5.3.120.0270.06714.53
5.3.110.0300.06314.52
5.3.100.0270.07314.02
5.3.90.0330.03713.90
5.3.80.0300.03314.04
5.3.70.0230.04314.04
5.3.60.0230.07314.03
5.3.50.0200.05313.92
5.3.40.0400.03713.85
5.3.30.0330.06713.76
5.3.20.0270.07013.62
5.3.10.0270.03713.75
5.3.00.0170.07713.66
5.2.170.0200.06012.07
5.2.160.0270.03312.07
5.2.150.0100.05312.07
5.2.140.0230.05712.07
5.2.130.0270.02712.07
5.2.120.0230.02712.07
5.2.110.0130.05712.07
5.2.100.0200.05712.07
5.2.90.0170.05712.07
5.2.80.0200.05312.07
5.2.70.0130.05712.07
5.2.60.0200.04712.07
5.2.50.0230.05012.07
5.2.40.0270.05012.07
5.2.30.0170.06312.07
5.2.20.0200.05312.07
5.2.10.0130.04712.07
5.2.00.0170.06012.07
5.1.60.0230.04712.07
5.1.50.0170.05312.07
5.1.40.0270.04012.07
5.1.30.0230.04712.07
5.1.20.0130.04312.07
5.1.10.0230.04312.07
5.1.00.0200.05312.07
5.0.50.0100.03012.07
5.0.40.0070.04012.07
5.0.30.0130.05712.07
5.0.20.0100.04312.07
5.0.10.0130.03712.07
5.0.00.0070.06012.07
4.4.90.0100.02712.07
4.4.80.0070.03312.07
4.4.70.0070.03012.07
4.4.60.0030.04012.07
4.4.50.0100.02712.07
4.4.40.0130.04712.07
4.4.30.0100.01712.07
4.4.20.0100.03312.07
4.4.10.0030.04012.07
4.4.00.0170.03712.07
4.3.110.0070.04012.07
4.3.100.0070.03312.07
4.3.90.0070.02712.07
4.3.80.0070.05712.07
4.3.70.0200.02312.07
4.3.60.0100.03312.07
4.3.50.0100.03712.07
4.3.40.0070.04312.07
4.3.30.0030.02712.07
4.3.20.0070.03712.07
4.3.10.0030.03312.07
4.3.00.0070.03012.07

preferences:
143.04 ms | 1394 KiB | 7 Q