3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Family: peppers, dimensions: 150 cm, origin: South America, pot diameter: 14, height with pot: 80"; $output = preg_replace("/pot diameter: [0-9]+/", '\0 cm.', $input); var_dump($output);

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.3.60.0040.01118.30
8.3.50.0120.00320.21
8.3.40.0110.00318.60
8.3.30.0150.00619.00
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.180.0160.00625.92
8.2.170.0120.00318.93
8.2.160.0090.00622.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00821.06
8.2.110.0060.00322.26
8.2.100.0080.00417.72
8.2.90.0000.00817.86
8.2.80.0030.00618.73
8.2.70.0050.00317.59
8.2.60.0080.00017.88
8.2.50.0060.00317.98
8.2.40.0040.00418.03
8.2.30.0040.00417.89
8.2.20.0050.00220.53
8.2.10.0040.00418.02
8.2.00.0000.00719.17
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0030.00726.35
8.1.250.0060.00328.09
8.1.240.0090.00019.09
8.1.230.0070.00419.15
8.1.220.0000.00818.64
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0050.00320.67
8.1.150.0000.00818.78
8.1.140.0000.00717.52
8.1.130.0040.00418.73
8.1.120.0000.00717.43
8.1.110.0050.00317.42
8.1.100.0050.00217.54
8.1.90.0000.00717.52
8.1.80.0040.00417.54
8.1.70.0030.00517.56
8.1.60.0060.00317.66
8.1.50.0050.00517.47
8.1.40.0150.00017.51
8.1.30.0130.00417.50
8.1.20.0200.00317.61
8.1.10.0170.00717.56
8.1.00.0190.00617.50
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0080.00018.27
8.0.270.0000.00716.77
8.0.260.0070.00018.44
8.0.250.0030.00317.07
8.0.240.0030.00316.91
8.0.230.0000.00716.95
8.0.220.0050.00217.00
8.0.210.0000.00716.95
8.0.200.0000.00716.99
8.0.190.0080.00017.01
8.0.180.0160.00416.95
8.0.170.0130.00917.03
8.0.160.0080.01217.05
8.0.150.0160.00416.86
8.0.140.0180.00016.89
8.0.130.0170.00816.96
8.0.120.0190.00316.93
8.0.110.0130.00716.97
8.0.100.0100.00516.91
8.0.90.0100.00216.80
8.0.80.0110.00016.98
8.0.70.0080.00316.93
8.0.60.0110.00616.91
8.0.50.0150.00516.87
8.0.30.0200.00016.94
8.0.20.0090.00916.97
8.0.10.0190.00317.06
7.4.330.0030.00315.55
7.4.320.0030.00316.74
7.4.300.0040.00416.61
7.4.290.0070.00316.61
7.4.280.0150.00316.62
7.4.270.0140.00616.68
7.4.260.0160.00616.61
7.4.250.0170.00416.66
7.4.240.0250.00016.52
7.4.230.0290.00016.52
7.4.220.0110.00816.77
7.4.210.0200.00316.57
7.4.200.0110.00716.62
7.4.190.0090.00816.68
7.4.180.0170.00416.68
7.4.160.0140.00516.79
7.4.150.0170.00016.69
7.4.140.0130.00316.64
7.4.130.0070.01016.66
7.4.120.0130.00316.44
7.4.110.0140.00316.57
7.4.100.0110.00516.66
7.4.90.0080.00616.64
7.4.80.0060.00716.45
7.4.70.0080.00416.57
7.4.60.0090.00616.59
7.4.50.0120.00616.59
7.4.40.0210.00016.64
7.4.30.0190.00316.55
7.4.20.0230.00016.53
7.4.10.0110.00716.45
7.4.00.0180.00016.49

preferences:
56.09 ms | 400 KiB | 5 Q