3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = ""; var_dump(preg_match('/^[a-z]{2}(?:[\-_][A-Z]{2})?$/iu', $v));

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.130.0000.00818.33
8.3.120.0000.00918.96
8.3.110.0130.00320.94
8.3.100.0000.00924.06
8.3.90.0040.00426.77
8.3.80.0090.00017.97
8.3.70.0110.00716.63
8.3.60.0100.01318.55
8.3.50.0080.00524.48
8.3.40.0160.00018.84
8.3.30.0170.00319.02
8.3.20.0060.00320.91
8.3.10.0080.00020.29
8.3.00.0030.00520.67
8.2.250.0140.00418.90
8.2.240.0060.00316.63
8.2.230.0070.00022.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0080.00818.66
8.2.180.0150.00618.54
8.2.170.0060.00922.96
8.2.160.0100.00320.45
8.2.150.0000.01124.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.84
8.2.110.0030.00620.96
8.2.100.0040.00817.97
8.2.90.0040.00418.16
8.2.80.0060.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00418.03
8.2.50.0000.00918.10
8.2.40.0000.00819.20
8.2.30.0000.00819.21
8.2.20.0040.00417.95
8.2.10.0090.00019.13
8.2.00.0040.00419.37
8.1.300.0100.00017.85
8.1.290.0040.00418.88
8.1.280.0100.00625.92
8.1.270.0080.00020.55
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0120.00022.69
8.1.220.0000.00817.74
8.1.210.0000.00818.84
8.1.200.0060.00317.48
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0030.00619.15
8.1.150.0030.00518.79
8.1.140.0040.00420.71
8.1.130.0000.00717.66
8.1.120.0050.00317.56
8.1.110.0040.00417.55
8.1.100.0030.00317.53
8.1.90.0000.00717.55
8.1.80.0090.00017.60
8.1.70.0070.00017.42
8.1.60.0040.00417.55
8.1.50.0070.00017.61
8.1.40.0040.00417.52
8.1.30.0030.00617.69
8.1.20.0070.00017.57
8.1.10.0000.00817.61
8.1.00.0030.00617.58
8.0.300.0040.00419.85
8.0.290.0040.00416.74
8.0.280.0030.00318.46
8.0.270.0060.00317.47
8.0.260.0030.00316.96
8.0.250.0030.00317.09
8.0.240.0030.00617.07
8.0.230.0040.00417.10
8.0.220.0060.00017.13
8.0.210.0070.00016.98
8.0.200.0060.00317.11
8.0.190.0080.00017.09
8.0.180.0040.00417.09
8.0.170.0000.00817.07
8.0.160.0000.00717.09
8.0.150.0040.00416.93
8.0.140.0070.00016.88
8.0.130.0030.00313.46
8.0.120.0050.00217.08
8.0.110.0040.00416.97
8.0.100.0040.00417.10
8.0.90.0030.00617.00
8.0.80.0030.01217.06
8.0.70.0040.00417.09
8.0.60.0040.00417.09
8.0.50.0040.00417.14
8.0.30.0040.01517.03
8.0.20.0100.01017.16
8.0.10.0040.00417.09
8.0.00.0030.01416.91
7.4.330.0000.00515.55
7.4.320.0030.00316.77
7.4.300.0030.00316.68
7.4.290.0000.00816.62
7.4.280.0090.00316.85
7.4.270.0000.00716.72
7.4.260.0000.00513.43
7.4.250.0000.01016.79
7.4.240.0030.00416.84
7.4.230.0050.00216.51
7.4.220.0050.00216.64
7.4.210.0030.01116.79
7.4.200.0030.00316.70
7.4.140.0180.00717.86
7.4.130.0120.00816.63
7.4.120.0100.00716.68
7.4.110.0060.01316.63
7.4.100.0180.00616.73
7.4.90.0100.00716.77
7.4.80.0110.00719.39
7.4.70.0110.00516.51
7.4.60.0060.01616.56
7.4.50.0090.00616.51
7.4.40.0070.01216.49
7.4.00.0070.00414.77
7.3.330.0040.00416.45
7.3.320.0020.00513.26
7.3.310.0080.00016.30
7.3.300.0020.00516.25
7.3.290.0090.00916.33
7.3.280.0060.01216.38
7.3.260.0110.00616.42
7.3.240.0100.00716.60
7.3.230.0120.00616.45
7.3.210.0110.00616.58
7.3.200.0130.00316.60
7.3.190.0030.01316.49
7.3.180.0070.00716.39
7.3.170.0030.01416.37
7.3.160.0030.01316.40
7.3.120.0090.01014.87
7.3.110.0150.00414.52
7.3.100.0060.01314.80
7.3.90.0200.00014.84
7.3.80.0120.00314.79
7.3.70.0060.01314.66
7.3.60.0120.00314.84
7.3.50.0090.00614.46
7.3.40.0110.00914.84
7.3.30.0110.00814.99
7.3.20.0170.00314.98
7.3.10.0030.01614.97
7.3.00.0090.00614.67
7.2.330.0130.00316.34
7.2.320.0120.00916.32
7.2.310.0070.01016.58
7.2.300.0120.00616.62
7.2.290.0130.00316.57
7.2.240.0130.01114.98
7.2.230.0150.00415.04
7.2.220.0120.00614.71
7.2.210.0060.01214.88
7.2.200.0030.01714.75
7.2.190.0080.00814.88
7.2.180.0090.00914.88
7.2.170.0060.00914.95
7.2.160.0030.01314.81
7.2.150.0060.01414.92
7.2.140.0030.01615.13
7.2.130.0030.01814.79
7.2.120.0030.01215.18
7.2.110.0030.01714.94
7.2.100.0100.01014.99
7.2.90.0150.00015.12
7.2.80.0060.00915.08
7.2.70.0130.00315.09
7.2.60.0100.01014.94
7.2.50.0030.01215.17
7.2.40.0060.00915.13
7.2.30.0110.00415.20
7.2.20.0040.01115.17
7.2.10.0100.00515.05
7.2.00.0110.00914.85
7.1.330.0080.01014.14
7.1.320.0100.00714.07
7.1.310.0110.00314.01
7.1.300.0000.01313.92
7.1.290.0060.00914.11
7.1.280.0560.00713.82
7.1.270.0080.00814.01
7.1.260.0000.01314.08
7.1.250.0130.00613.70

preferences:
28.67 ms | 403 KiB | 5 Q