3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "Stick'& Go BY AVERY !" $result = preg_replace("/[^a-zA-Z0-9]+/", "", $s); echo $result;

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.6.110.0070.08721.13
5.6.100.0170.07721.13
5.6.90.0100.03321.10
5.6.80.0070.07320.37
5.5.270.0070.07720.70
5.5.260.0070.04720.61
5.5.250.0070.04020.69
5.5.240.0000.08020.07
5.4.430.1400.00019.39
5.4.420.1300.00019.64
5.4.410.1430.00019.47
5.4.400.1470.00018.96
5.4.390.1300.00019.23
5.4.380.1200.00019.11
5.4.370.1470.00019.12
5.4.360.1330.00019.26
5.4.350.1400.00019.32
5.4.340.1570.00019.32
5.4.320.1170.00018.99
5.4.310.1600.00019.18
5.4.300.1330.00019.07
5.4.290.1400.00019.24
5.4.280.1300.00019.22
5.4.270.1500.00018.90
5.4.260.1600.00019.01
5.4.250.1530.00019.12
5.4.240.1470.00019.25
5.4.230.1570.00019.07
5.4.220.1430.00018.99
5.4.210.1430.00019.12
5.4.200.1300.00016.67
5.4.190.1270.00019.21
5.4.180.1200.00018.89
5.4.170.1270.00018.99
5.4.160.1370.00019.20
5.4.150.1300.00019.00
5.4.140.1530.00016.64
5.4.130.1270.00016.32
5.4.120.1500.00016.44
5.4.110.1200.00016.47
5.4.100.1470.00016.41
5.4.90.1200.00016.48
5.4.80.1170.00016.42
5.4.70.1230.00016.64
5.4.60.1100.00016.52
5.4.50.1230.00016.55
5.4.40.1200.00016.52
5.4.30.1170.00016.59
5.4.20.1230.00016.59
5.4.10.1130.00016.63
5.4.00.1300.00015.93
5.3.290.1230.00014.59
5.3.280.1470.00014.60
5.3.270.1670.00014.61
5.3.260.1300.00014.48
5.3.250.1370.00014.52
5.3.240.1530.00014.53
5.3.230.1230.00014.53
5.3.220.1370.00014.49
5.3.210.1330.00014.41
5.3.200.1730.00014.39
5.3.190.1300.00014.43
5.3.180.1530.00014.46
5.3.170.1230.00014.52
5.3.160.1030.00014.48
5.3.150.1170.00014.40
5.3.140.1300.00014.39
5.3.130.1170.00014.48
5.3.120.1230.00014.41
5.3.110.1430.00014.46
5.3.100.1500.00013.88
5.3.90.1500.00013.91
5.3.80.1170.00013.81
5.3.70.1330.00013.84
5.3.60.1470.00013.91
5.3.50.1300.00013.80
5.3.40.1400.00013.78
5.3.30.1270.00013.70
5.3.20.1370.00013.52
5.3.10.1130.00013.53
5.3.00.1630.00013.48
5.2.170.1270.00011.04
5.2.160.1070.00011.05
5.2.150.1070.00010.98
5.2.140.1000.00010.93
5.2.130.1000.00011.20
5.2.120.1100.00010.89
5.2.110.1100.00010.95
5.2.100.0900.00011.04
5.2.90.0900.00010.97
5.2.80.1070.00011.00
5.2.70.1230.00010.89
5.2.60.1170.00010.91
5.2.50.1030.00011.11
5.2.40.0900.00010.89
5.2.30.0870.00010.98
5.2.20.0930.00010.75
5.2.10.0830.00010.92
5.2.00.0830.00010.82
5.1.60.0970.00010.07
5.1.50.0770.0009.92
5.1.40.0970.0009.97
5.1.30.0830.00010.28
5.1.20.1070.00010.25
5.1.10.0800.00010.02
5.1.00.0830.00010.07
5.0.50.0600.0008.46
5.0.40.0570.0008.34
5.0.30.0630.0008.26
5.0.20.0700.0008.19
5.0.10.0500.0008.29
5.0.00.0600.0008.07
4.4.90.0470.0005.77
4.4.80.0630.0005.85
4.4.70.0500.0005.75
4.4.60.0530.0005.77
4.4.50.0500.0005.85
4.4.40.0600.0005.82
4.4.30.0430.0005.84
4.4.20.0470.0005.80
4.4.10.0570.0005.83
4.4.00.0370.0005.92
4.3.110.0230.0005.72
4.3.100.0230.0005.71
4.3.90.0300.0005.83
4.3.80.0470.0005.67
4.3.70.0570.0005.78
4.3.60.0570.0005.76
4.3.50.0530.0005.74
4.3.40.0570.0005.73
4.3.30.0270.0004.52
4.3.20.0330.0004.43
4.3.10.0370.0004.48
4.3.00.0030.0207.17

preferences:
144.85 ms | 1394 KiB | 7 Q