3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "The Chernobyl disaster was a catastrophic nuclear accident that occurred on 26 April 1986, in the No. 4 nuclear reactor at the Chernobyl Nuclear Power Plant, near the city of Pripyat, in the north of the Ukrainian SSR."; $pattern = '%[A-Z]\w+%'; $replacement = "****"; $newString = preg_filter($pattern, $replacement, $string); print($newString);

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.0070.00718.56
8.3.50.0090.00716.54
8.3.40.0120.00319.09
8.3.30.0110.00418.72
8.3.20.0080.00020.64
8.3.10.0040.00420.34
8.3.00.0000.00823.59
8.2.180.0040.01525.92
8.2.170.0120.00322.96
8.2.160.0140.00020.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0110.00420.98
8.2.110.0100.00021.96
8.2.100.0040.00817.91
8.2.90.0050.00317.97
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0030.00618.16
8.2.50.0050.00318.10
8.2.40.0040.00419.28
8.2.30.0040.00419.25
8.2.20.0040.00418.13
8.2.10.0040.00419.05
8.2.00.0000.00819.53
8.1.280.0070.01125.92
8.1.270.0040.00422.50
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.19
8.1.230.0110.00022.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00617.48
8.1.190.0030.00617.36
8.1.180.0000.00818.10
8.1.170.0060.00318.51
8.1.160.0000.00718.84
8.1.150.0030.00518.84
8.1.140.0050.00318.75
8.1.130.0040.00420.14
8.1.120.0040.00717.52
8.1.110.0040.00417.37
8.1.100.0040.00417.43
8.1.90.0000.00717.55
8.1.80.0080.00317.40
8.1.70.0070.00017.55
8.1.60.0030.00517.55
8.1.50.0040.00417.65
8.1.40.0000.00817.60
8.1.30.0040.00417.61
8.1.20.0000.00917.71
8.1.10.0000.00817.61
8.1.00.0030.00517.54
8.0.300.0040.00419.78
8.0.290.0000.00816.88
8.0.280.0000.00718.37
8.0.270.0040.00417.27
8.0.260.0000.00718.52
8.0.250.0000.00716.98
8.0.240.0040.00417.11
8.0.230.0000.00717.02
8.0.220.0040.00417.06
8.0.210.0040.00416.95
8.0.200.0000.00716.90
8.0.190.0000.00716.99
8.0.180.0030.00317.00
8.0.170.0060.00317.00
8.0.160.0050.00216.93
8.0.150.0030.00616.92
8.0.140.0040.00416.86
8.0.130.0030.00313.35
8.0.120.0000.00716.92
8.0.110.0070.00016.93
8.0.100.0040.00416.91
8.0.90.0040.00416.98
8.0.80.0090.01117.02
8.0.70.0040.00416.87
8.0.60.0000.00716.87
8.0.50.0070.00017.05
8.0.30.0180.01017.13
8.0.20.0150.00417.24
8.0.10.0040.00417.04
8.0.00.0110.00816.91
7.4.330.0020.00215.55
7.4.320.0030.00316.71
7.4.300.0060.00016.56
7.4.290.0000.00616.63
7.4.280.0060.00316.77
7.4.270.0000.00716.63
7.4.260.0000.00616.63
7.4.250.0030.00316.56
7.4.240.0050.00216.64
7.4.230.0040.00416.69
7.4.220.0000.00816.75
7.4.210.0050.01216.72
7.4.200.0000.00716.82
7.4.160.0070.01116.74
7.4.140.0150.00317.86
7.4.130.0120.00616.57
7.4.120.0070.01116.50
7.4.110.0160.00816.70
7.4.100.0100.00716.62
7.4.90.0170.00716.85
7.4.80.0120.00619.39
7.4.70.0120.00616.54
7.4.60.0060.01216.70
7.4.50.0060.00916.43
7.4.40.0060.01116.60
7.4.00.0070.01115.21
7.3.330.0020.00213.25
7.3.320.0050.00013.32
7.3.310.0000.00716.48
7.3.300.0030.00316.25
7.3.290.0030.00316.36
7.3.280.0120.01216.28
7.3.260.0110.00816.53
7.3.240.0060.01116.57
7.3.230.0070.01016.50
7.3.210.0130.00316.44
7.3.200.0050.01316.33
7.3.190.0090.00616.60
7.3.180.0060.01116.40
7.3.170.0100.01016.63
7.3.160.0110.00816.56
7.3.50.0080.01514.90
7.3.40.0030.00714.75
7.3.30.0100.00014.72
7.3.20.0110.00316.61
7.3.10.0070.00716.65
7.3.00.0130.00916.85
7.2.330.0130.00616.86
7.2.320.0110.00616.66
7.2.310.0130.00316.69
7.2.300.0030.01416.69
7.2.290.0150.00616.61
7.2.180.0060.00915.20
7.2.170.0060.00615.09
7.2.160.0030.01014.77
7.2.150.0060.01017.14
7.2.140.0070.00717.02
7.2.130.0090.00617.00
7.2.120.0060.00917.03
7.2.110.0030.00917.10
7.2.100.0030.01116.98
7.2.90.0040.01116.96
7.2.80.0090.00617.04
7.2.70.0040.00916.81
7.2.60.0100.00317.07
7.2.50.0140.00017.05
7.2.40.0080.00616.96
7.2.30.0090.00616.97
7.2.20.0120.00316.93
7.2.10.0060.00917.14
7.2.00.0160.00317.04
7.1.280.0060.00615.94
7.1.270.0050.00816.06
7.1.260.0130.00015.98
7.1.250.0030.01016.05

preferences:
53.32 ms | 401 KiB | 5 Q