3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('[\.+]', 'a[test],b', $allowableTags)

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.360.0170.05018.63
5.4.350.0170.03013.70
5.4.340.0100.03713.64
5.4.320.0170.03314.16
5.4.310.0200.03014.14
5.4.300.0100.03714.14
5.4.290.0030.04014.16
5.4.280.0100.03314.12
5.4.270.0070.04314.20
5.4.260.0100.03714.10
5.4.250.0030.04014.06
5.4.240.0070.03714.07
5.4.230.0000.04714.05
5.4.220.0070.03714.00
5.4.210.0100.04014.02
5.4.200.0100.04714.05
5.4.190.0200.04014.10
5.4.180.0030.04014.20
5.4.170.0070.03714.11
5.4.160.0170.03014.02
5.4.150.0030.04014.06
5.4.140.0100.03313.67
5.4.130.0100.03313.82
5.4.120.0130.03313.73
5.4.110.0130.03313.72
5.4.100.0130.03313.73
5.4.90.0100.03313.64
5.4.80.0100.03313.72
5.4.70.0000.05013.64
5.4.60.0070.03713.72
5.4.50.0100.04313.67
5.4.40.0170.04013.68
5.4.30.0200.03013.79
5.4.20.0030.04313.71
5.4.10.0170.03313.64
5.4.00.0030.04313.18
5.3.290.0100.04714.52
5.3.280.0100.04014.56
5.3.270.0130.03314.64
5.3.260.0030.04014.50
5.3.250.0130.03314.64
5.3.240.0070.04314.50
5.3.230.0230.04314.46
5.3.220.0070.05014.42
5.3.210.0170.04014.49
5.3.200.0200.03014.57
5.3.190.0200.03314.42
5.3.180.0170.05014.46
5.3.170.0230.03714.43
5.3.160.0130.04314.46
5.3.150.0100.05714.59
5.3.140.0130.05014.45
5.3.130.0170.04714.51
5.3.120.0070.04714.58
5.3.110.0030.04714.40
5.3.100.0000.04313.91
5.3.90.0030.04013.97
5.3.80.0070.03713.91
5.3.70.0100.03313.94
5.3.60.0100.03713.89
5.3.50.0030.04313.82
5.3.40.0030.04313.97
5.3.30.0030.04313.96
5.3.20.0070.03313.54
5.3.10.0070.03713.56
5.3.00.0030.03713.58
5.2.170.0000.03311.22
5.2.160.0000.03311.03
5.2.150.0000.03711.05
5.2.140.0070.03311.05
5.2.130.0030.03310.95
5.2.120.0000.03311.01
5.2.110.0070.03711.15
5.2.100.0030.03011.08
5.2.90.0100.03311.07
5.2.80.0000.03311.07
5.2.70.0070.03711.18
5.2.60.0000.03711.02
5.2.50.0070.03010.87
5.2.40.0030.03010.96
5.2.30.0030.03010.86
5.2.20.0030.03010.95
5.2.10.0070.03710.86
5.2.00.0130.02310.70
5.1.60.0070.02010.05
5.1.50.0030.0279.99
5.1.40.0030.02710.04
5.1.30.0030.03310.37
5.1.20.0070.02310.39
5.1.10.0030.02710.13
5.1.00.0100.02310.02
5.0.50.0000.0338.55
5.0.40.0000.0238.48
5.0.30.0000.0338.16
5.0.20.0000.0238.20
5.0.10.0000.0238.14
5.0.00.0030.0338.15
4.4.90.0000.0175.80
4.4.80.0030.0175.79
4.4.70.0030.0175.82
4.4.60.0070.0105.81
4.4.50.0030.0135.82
4.4.40.0000.0275.84
4.4.30.0030.0175.80
4.4.20.0030.0135.89
4.4.10.0030.0205.98
4.4.00.0000.0275.87
4.3.110.0030.0175.74
4.3.100.0030.0175.75
4.3.90.0070.0105.79
4.3.80.0030.0275.72
4.3.70.0030.0275.72
4.3.60.0000.0175.80
4.3.50.0030.0135.76
4.3.40.0030.0275.79
4.3.30.0000.0234.53
4.3.20.0030.0174.50
4.3.10.0000.0204.52
4.3.00.0070.01316.49

preferences:
144.43 ms | 1394 KiB | 7 Q