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+%'; preg_match_all($pattern, $string, $matches); print_r($matches);

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.4.20.0070.01320.50
8.4.10.0130.00319.57
8.3.140.0040.00416.70
8.3.130.0070.01318.35
8.3.120.0150.00018.66
8.3.110.0060.00320.94
8.3.100.0040.00416.71
8.3.90.0110.00326.77
8.3.80.0090.00018.23
8.3.70.0120.00316.58
8.3.60.0080.00818.50
8.3.50.0080.00816.48
8.3.40.0120.00418.82
8.3.30.0120.00418.66
8.3.20.0070.00020.75
8.3.10.0000.00820.34
8.3.00.0040.00423.48
8.2.260.0040.00420.67
8.2.250.0040.00417.01
8.2.240.0090.00018.96
8.2.230.0050.00322.58
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0090.01218.42
8.2.180.0100.00725.92
8.2.170.0140.00722.96
8.2.160.0140.00020.30
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00721.04
8.2.110.0070.00322.08
8.2.100.0000.01219.45
8.2.90.0100.00017.38
8.2.80.0080.00018.95
8.2.70.0030.00617.62
8.2.60.0090.00017.75
8.2.50.0040.00417.55
8.2.40.0030.00619.35
8.2.30.0090.00019.09
8.2.20.0000.00718.02
8.2.10.0080.00019.00
8.2.00.0040.00419.50
8.1.310.0070.01117.94
8.1.300.0030.00618.42
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0050.00322.41
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.67
8.1.230.0070.00417.77
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0060.00317.62
8.1.160.0040.00418.79
8.1.150.0050.00218.80
8.1.140.0000.00818.73
8.1.130.0000.00820.09
8.1.120.0030.00617.59
8.1.110.0000.00817.43
8.1.100.0000.00717.54
8.1.90.0000.00717.45
8.1.80.0040.00417.59
8.1.70.0030.00317.51
8.1.60.0040.00417.57
8.1.50.0000.00717.66
8.1.40.0040.00417.51
8.1.30.0030.00517.73
8.1.20.0030.00617.63
8.1.10.0000.00717.65
8.1.00.0040.00417.68
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.34
8.0.270.0030.00317.29
8.0.260.0000.00718.30
8.0.250.0030.00317.05
8.0.240.0070.00017.00
8.0.230.0000.00717.03
8.0.220.0040.00416.98
8.0.210.0070.00016.96
8.0.200.0000.00717.01
8.0.190.0040.00417.04
8.0.180.0030.00516.96
8.0.170.0040.00416.82
8.0.160.0040.00417.07
8.0.150.0080.00416.84
8.0.140.0040.00416.82
8.0.130.0000.00513.41
8.0.120.0040.00416.93
8.0.110.0050.00216.98
8.0.100.0080.00016.96
8.0.90.0040.00416.96
8.0.80.0130.00616.94
8.0.70.0040.00416.93
8.0.60.0040.00416.96
8.0.50.0040.00416.93
8.0.30.0120.00817.35
8.0.20.0090.00916.90
8.0.10.0070.00016.97
8.0.00.0110.00716.98
7.4.330.0000.00515.55
7.4.320.0060.00016.77
7.4.300.0000.00616.59
7.4.290.0040.00416.67
7.4.280.0050.00316.70
7.4.270.0000.00816.65
7.4.260.0030.00316.57
7.4.250.0030.00316.68
7.4.240.0030.00316.66
7.4.230.0000.00716.64
7.4.220.0080.00016.55
7.4.210.0080.00916.70
7.4.200.0030.00316.83
7.4.160.0100.00716.68
7.4.140.0070.01017.86
7.4.130.0080.00816.54
7.4.120.0090.00916.54
7.4.110.0150.00316.68
7.4.100.0070.01116.67
7.4.90.0030.01416.53
7.4.80.0080.00919.39
7.4.70.0030.01316.78
7.4.60.0030.01616.43
7.4.50.0030.00716.62
7.4.40.0130.00716.54
7.4.00.0020.01415.11
7.3.330.0000.00513.00
7.3.320.0030.00313.25
7.3.310.0030.00316.24
7.3.300.0000.00616.27
7.3.290.0030.00316.26
7.3.280.0130.00616.25
7.3.260.0090.01116.53
7.3.240.0090.00716.34
7.3.230.0110.00616.21
7.3.210.0110.00716.25
7.3.200.0060.01516.36
7.3.190.0060.00916.49
7.3.180.0060.00916.59
7.3.170.0160.00616.45
7.3.160.0100.01016.52
7.3.120.0060.00914.82
7.3.110.0020.01414.87
7.3.100.0050.00914.90
7.3.90.0040.00814.95
7.3.80.0080.00314.63
7.3.70.0080.00514.78
7.3.60.0080.00814.74
7.3.50.0070.00914.78
7.3.40.0080.00714.65
7.3.30.0050.00914.86
7.3.20.0080.00816.56
7.3.10.0090.00916.75
7.3.00.0070.00616.63
7.2.330.0080.00916.52
7.2.320.0100.00716.55
7.2.310.0070.01016.65
7.2.300.0110.00716.59
7.2.290.0060.01616.74
7.2.250.0050.01314.97
7.2.240.0100.01014.97
7.2.230.0050.01215.15
7.2.220.0060.00614.96
7.2.210.0070.00514.78
7.2.200.0030.00814.95
7.2.190.0050.00814.74
7.2.180.0070.00715.01
7.2.170.0060.00815.07
7.2.160.0050.01014.96
7.2.150.0150.00616.87
7.2.140.0100.00616.80
7.2.130.0100.00616.74
7.2.120.0060.00816.96
7.2.110.0110.00316.91
7.2.100.0070.01016.74
7.2.90.0080.01316.73
7.2.80.0080.00516.96
7.2.70.0100.00616.78
7.2.60.0040.01316.77
7.2.50.0110.00616.85
7.2.40.0080.00816.86
7.2.30.0120.01016.77
7.2.20.0080.00716.90
7.2.10.0100.00316.94
7.2.00.0100.00916.90
7.1.330.0060.01015.79
7.1.320.0050.00915.89
7.1.310.0060.00815.97
7.1.300.0070.00915.84
7.1.290.0020.01315.98
7.1.280.0050.00715.88
7.1.270.0050.01115.87
7.1.260.0050.00815.80
7.1.250.0060.00615.88

preferences:
52.87 ms | 403 KiB | 5 Q