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 = "capitalisted word"; $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.0110.00418.43
8.3.50.0090.01016.56
8.3.40.0150.00019.02
8.3.30.0060.00918.61
8.3.20.0000.00820.76
8.3.10.0030.00620.34
8.3.00.0070.00023.48
8.2.180.0150.00325.92
8.2.170.0090.00622.96
8.2.160.0060.00820.35
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0060.00319.07
8.2.100.0040.00817.84
8.2.90.0040.00418.02
8.2.80.0060.00318.04
8.2.70.0040.00417.93
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0060.00319.42
8.2.30.0060.00319.27
8.2.20.0070.00017.96
8.2.10.0020.00519.10
8.2.00.0040.00319.59
8.1.280.0070.01725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.86
8.1.230.0050.00520.97
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0090.00018.64
8.1.160.0040.00418.85
8.1.150.0040.00418.89
8.1.140.0070.00018.83
8.1.130.0040.00420.02
8.1.120.0070.00317.49
8.1.110.0040.00417.57
8.1.100.0000.00817.54
8.1.90.0050.00217.43
8.1.80.0060.00617.40
8.1.70.0000.00717.49
8.1.60.0050.00317.69
8.1.50.0040.00417.51
8.1.40.0040.00417.49
8.1.30.0030.00617.75
8.1.20.0080.00017.74
8.1.10.0040.00417.50
8.1.00.0030.00617.63
8.0.300.0000.00820.02
8.0.290.0060.00316.88
8.0.280.0040.00418.43
8.0.270.0000.00817.28
8.0.260.0070.00018.48
8.0.250.0000.00717.00
8.0.240.0000.00817.00
8.0.230.0070.00017.00
8.0.220.0080.00016.98
8.0.210.0040.00416.99
8.0.200.0030.00317.02
8.0.190.0070.00017.02
8.0.180.0040.00416.98
8.0.170.0090.00016.99
8.0.160.0040.00416.92
8.0.150.0030.00317.00
8.0.140.0030.00316.83
8.0.130.0030.00313.40
8.0.120.0040.00416.90
8.0.110.0000.00817.02
8.0.100.0040.00416.91
8.0.90.0040.00416.99
8.0.80.0100.01016.91
8.0.70.0070.00016.96
8.0.60.0000.00716.94
8.0.50.0000.00816.92
8.0.30.0100.01017.19
8.0.20.0140.00717.09
8.0.10.0000.00716.92
8.0.00.0120.00916.88
7.4.330.0040.00015.55
7.4.320.0000.00716.80
7.4.300.0030.00316.79
7.4.290.0000.00816.60
7.4.280.0040.00316.71
7.4.270.0030.00316.69
7.4.260.0050.00316.64
7.4.250.0000.00916.63
7.4.240.0040.00416.69
7.4.230.0030.00316.73
7.4.220.0040.00416.75
7.4.210.0060.00916.75
7.4.200.0070.00016.50
7.4.160.0100.00816.66
7.4.140.0090.00917.86
7.4.130.0070.01116.56
7.4.120.0070.01016.45
7.4.110.0060.01316.66
7.4.100.0080.00816.52
7.4.90.0070.01016.71
7.4.80.0130.01019.39
7.4.70.0130.00716.86
7.4.60.0050.01116.71
7.4.50.0070.00716.50
7.4.40.0060.00916.75
7.4.10.0100.01014.91
7.4.00.0100.00815.08
7.3.330.0020.00313.26
7.3.320.0050.00013.21
7.3.310.0070.00016.39
7.3.300.0060.00016.31
7.3.290.0070.00716.39
7.3.280.0050.01216.29
7.3.260.0110.00716.47
7.3.240.0080.00816.60
7.3.230.0130.00616.43
7.3.210.0100.00716.34
7.3.200.0100.01316.75
7.3.190.0060.01016.32
7.3.180.0040.01416.45
7.3.170.0110.00616.29
7.3.160.0130.00316.74
7.3.130.0100.01014.61
7.3.120.0080.00714.92
7.3.110.0110.00514.75
7.3.100.0050.01114.81
7.3.90.0020.01014.84
7.3.80.0080.00514.90
7.3.70.0050.00914.92
7.3.60.0080.00814.92
7.3.50.0060.00814.88
7.3.40.0070.00914.73
7.3.30.0070.00714.86
7.3.20.0090.00416.77
7.3.10.0040.00816.56
7.3.00.0070.00616.68
7.2.330.0100.00716.77
7.2.320.0110.00716.72
7.2.310.0130.00316.80
7.2.300.0060.01416.66
7.2.290.0110.01316.70
7.2.260.0070.01315.08
7.2.250.0050.01115.12
7.2.240.0010.01715.06
7.2.230.0070.00815.18
7.2.220.0070.00715.14
7.2.210.0020.01215.05
7.2.200.0070.00715.16
7.2.190.0050.00915.18
7.2.180.0070.00815.07
7.2.170.0060.00715.07
7.2.160.0040.01115.12
7.2.150.0050.00917.06
7.2.140.0070.00817.01
7.2.130.0060.00817.03
7.2.120.0070.00716.96
7.2.110.0060.00817.05
7.2.100.0060.00816.97
7.2.90.0110.00316.96
7.2.80.0060.00816.96
7.2.70.0110.00217.08
7.2.60.0070.01016.96
7.2.50.0080.00816.99
7.2.40.0070.00617.01
7.2.30.0070.00816.93
7.2.20.0110.00416.96
7.2.10.0070.00717.05
7.2.00.0060.00616.99
7.1.330.0080.00916.11
7.1.320.0080.00616.01
7.1.310.0050.00715.98
7.1.300.0070.00715.92
7.1.290.0090.00415.78
7.1.280.0100.00415.82
7.1.270.0100.00315.95
7.1.260.0100.00715.79
7.1.250.0070.00515.91
7.1.240.0040.00815.91
7.1.230.0080.00316.05
7.1.220.0100.00515.90
7.1.210.0020.01215.86
7.1.200.0030.00916.00
7.1.190.0020.01115.89
7.1.180.0030.00815.95
7.1.170.0040.00715.97
7.1.160.0080.00515.93
7.1.150.0040.00815.86
7.1.140.0030.01015.97
7.1.130.0070.00815.96
7.1.120.0100.00515.89
7.1.110.0050.01116.00
7.1.100.0070.00516.00
7.1.90.0040.00816.06
7.1.80.0070.00516.07
7.1.70.0120.00315.90
7.1.60.0080.00816.02
7.1.50.0050.01116.08
7.1.40.0100.00215.94
7.1.30.0060.00615.82
7.1.20.0070.00515.83
7.1.10.0050.00815.89
7.1.00.0050.00815.95

preferences:
69.4 ms | 401 KiB | 5 Q