3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'one "two" (three) -four-'; echo preg_replace('/\b/', '*', $test);

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)
8.5.10.0100.01016.67
8.5.00.0120.00920.00
8.4.160.0120.01020.68
8.4.150.0020.00014.05
8.4.140.0110.00917.69
8.4.130.0100.01017.91
8.4.120.0120.00820.66
8.4.110.0080.01218.88
8.4.100.0120.00917.94
8.4.90.0100.00117.90
8.4.80.0060.00319.38
8.4.70.0070.00218.00
8.4.60.0140.00818.50
8.4.50.0050.00418.60
8.4.40.0130.00618.50
8.4.30.0090.00920.55
8.4.20.0070.01317.79
8.4.10.0040.00419.62
8.3.290.0070.01320.85
8.3.280.0130.00818.56
8.3.270.0130.00916.80
8.3.260.0120.00816.63
8.3.250.0090.01118.75
8.3.240.0070.01016.54
8.3.230.0120.00616.95
8.3.220.0080.00716.67
8.3.210.0080.01016.97
8.3.200.0080.00116.79
8.3.190.0050.00417.22
8.3.180.0030.00516.86
8.3.170.0080.00018.74
8.3.160.0160.00316.71
8.3.150.0110.00720.58
8.3.140.0060.00316.59
8.3.130.0000.01016.64
8.3.120.0090.00620.61
8.3.110.0090.00016.76
8.3.100.0050.00316.88
8.3.90.0110.00426.77
8.3.80.0060.00618.12
8.3.70.0100.01318.26
8.3.60.0130.00316.75
8.3.50.0110.00416.89
8.3.40.0100.00722.27
8.3.30.0000.01421.50
8.3.20.0050.00324.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0130.00920.32
8.2.290.0140.00519.08
8.2.280.0090.01018.52
8.2.270.0140.00317.50
8.2.260.0050.00318.58
8.2.250.0040.00416.84
8.2.240.0030.01717.07
8.2.230.0040.00420.94
8.2.220.0090.00024.06
8.2.210.0040.01226.77
8.2.200.0060.00318.66
8.2.190.0160.00016.58
8.2.180.0110.00416.63
8.2.170.0090.00619.02
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.93
8.2.110.0180.00322.34
8.2.100.0230.00321.00
8.2.90.0230.01318.89
8.2.80.0310.00018.77
8.2.70.0360.00718.56
8.2.60.0240.00919.03
8.2.50.0300.00718.86
8.2.40.0120.00918.92
8.2.30.0170.01018.82
8.2.20.0150.00818.86
8.2.10.0310.00719.08
8.2.00.0230.00818.73
8.1.340.0100.01020.14
8.1.330.0110.00816.31
8.1.320.0120.00916.38
8.1.310.0090.00016.98
8.1.300.0120.00618.48
8.1.290.0100.00030.84
8.1.280.0070.01125.92
8.1.270.0030.00623.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0120.00318.57
8.1.230.0200.01418.57
8.1.220.0240.01018.77
8.1.210.0140.00420.08
8.1.200.0120.00318.50
8.1.190.0190.00418.34
8.1.180.0320.00618.49
8.1.170.0210.01418.58
8.1.160.0090.00518.75
8.1.150.0090.00420.54
8.1.140.0160.00018.56
8.1.130.0150.00018.51
8.1.120.0260.00318.61
8.1.110.0190.00318.71
8.1.100.0100.00718.68
8.1.90.0180.01518.49
8.1.80.0080.00818.55
8.1.70.0080.00518.70
8.1.60.0130.00518.87
8.1.50.0240.00818.73
8.1.40.0170.00318.57
8.1.30.0100.00318.92
8.1.20.0170.00618.68
8.1.10.0110.00518.58
8.1.00.0190.00818.42
8.0.300.0130.00417.94
8.0.290.0270.01018.02
8.0.280.0140.00017.99
8.0.270.0170.00617.87
8.0.260.0160.00917.98
8.0.250.0160.00318.04
8.0.240.0090.00317.99
8.0.230.0130.01318.07
8.0.220.0300.01317.82
8.0.210.0320.00317.93
8.0.200.0320.00718.00
8.0.190.0310.00718.13
8.0.180.0250.01318.00
8.0.170.0210.00317.91
8.0.160.0250.01217.80
8.0.150.0200.01017.98
8.0.140.0110.00618.00
8.0.130.0150.00618.07
8.0.120.0210.01218.04
8.0.110.0130.00318.11
8.0.100.0100.01017.86
8.0.90.0230.01017.83
8.0.80.0300.00317.95
8.0.70.0220.00317.85
8.0.60.0160.00018.05
8.0.50.0110.00617.88
8.0.30.0210.00318.08
8.0.20.0220.00618.11
8.0.10.0150.00318.04

preferences:
40.02 ms | 403 KiB | 5 Q