3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = ''; $host = ''; if (preg_match($pattern, $host)) { echo 'Matched'; } else { echo 'Not matched.'; }

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.70.0140.00316.63
8.3.60.0060.01516.49
8.3.50.0070.01221.92
8.3.40.0060.00818.49
8.3.30.0140.00718.68
8.3.20.0080.00019.15
8.3.10.0040.00421.78
8.3.00.0080.00020.65
8.2.180.0090.00618.54
8.2.170.0120.00918.91
8.2.160.0130.00022.96
8.2.150.0120.00325.66
8.2.140.0050.00224.66
8.2.130.0040.00420.96
8.2.120.0070.00026.35
8.2.110.0070.00320.97
8.2.100.0000.01117.77
8.2.90.0030.00517.75
8.2.80.0000.00817.97
8.2.70.0000.00818.04
8.2.60.0050.00318.09
8.2.50.0000.00818.10
8.2.40.0040.00420.46
8.2.30.0040.00419.18
8.2.20.0040.00417.84
8.2.10.0000.00717.96
8.2.00.0000.00717.60
8.1.280.0090.00625.92
8.1.270.0080.00022.24
8.1.260.0110.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.53
8.1.230.0030.00920.91
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0090.00016.99
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0050.00218.70
8.1.150.0030.00320.26
8.1.140.0030.00319.50
8.1.130.0040.00417.63
8.1.120.0040.00417.31
8.1.110.0040.00417.37
8.1.100.0040.00417.31
8.1.90.0070.00017.34
8.1.80.0040.00417.29
8.1.70.0000.00817.43
8.1.60.0000.00817.44
8.1.50.0000.00817.48
8.1.40.0040.00417.42
8.1.30.0040.00717.58
8.1.20.0000.00717.56
8.1.10.0000.00717.50
8.1.00.0040.00817.48
8.0.300.0070.00018.77
8.0.290.0000.00916.75
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0030.00318.31
8.0.250.0030.00316.84
8.0.240.0000.00617.02
8.0.230.0030.00316.93
8.0.220.0000.00716.82
8.0.210.0030.00316.91
8.0.200.0030.00316.93
8.0.190.0050.00516.95
8.0.180.0040.00416.77
8.0.170.0080.00016.88
8.0.160.0000.00716.96
8.0.150.0050.00216.82
8.0.140.0050.00216.86
8.0.130.0030.00313.27
8.0.120.0040.00416.88
8.0.110.0030.00316.85
8.0.100.0040.00416.74
8.0.90.0000.00716.80
8.0.80.0000.01416.89
8.0.70.0060.00316.93
8.0.60.0000.00716.75
8.0.50.0000.00716.82
8.0.30.0070.01017.06
8.0.20.0110.00617.40
8.0.10.0000.00716.94
8.0.00.0130.00617.01
7.4.330.0050.00015.55
7.4.320.0030.00316.38
7.4.300.0030.00316.42
7.4.290.0030.00316.47
7.4.280.0020.00516.38
7.4.270.0000.00716.57
7.4.260.0030.00316.51
7.4.250.0070.00016.34
7.4.240.0040.00416.53
7.4.230.0040.00416.18
7.4.220.0070.01016.36
7.4.210.0090.00816.53
7.4.200.0030.00316.25
7.4.160.0110.00416.36
7.4.150.0150.00317.40
7.4.140.0080.01117.86
7.4.130.0150.00616.56
7.4.120.0110.00716.47
7.4.110.0130.01016.57
7.4.100.0110.01116.62
7.4.90.0030.01516.51
7.4.80.0130.01019.39
7.4.70.0100.00716.48
7.4.60.0100.00716.42
7.4.50.0110.00416.30
7.4.40.0110.00616.48
7.4.30.0130.00716.43
7.4.00.0070.01014.95
7.3.330.0030.00313.06
7.3.320.0000.00613.16
7.3.310.0030.00316.11
7.3.300.0060.00016.09
7.3.290.0030.00516.18
7.3.280.0110.00916.18
7.3.270.0030.01417.40
7.3.260.0040.01616.40
7.3.250.0110.00916.24
7.3.240.0050.01416.26
7.3.230.0090.01316.39
7.3.210.0090.00916.44
7.3.200.0070.01116.43
7.3.190.0060.01616.45
7.3.180.0060.01016.46
7.3.170.0070.01016.30
7.3.160.0100.00716.20
7.2.330.0090.00916.52
7.2.320.0110.00616.44
7.2.310.0060.01216.50
7.2.300.0090.01616.30
7.2.290.0060.01216.63
7.2.60.0110.00416.54
7.2.50.0000.01416.87
7.2.00.0000.01819.32
7.1.200.0030.00915.41
7.1.70.0060.00616.82
7.1.60.0040.00816.94
7.1.00.0030.07322.30
7.0.200.0090.00016.62
7.0.130.0070.05322.06
7.0.120.0070.05322.03
7.0.110.0070.07022.11
7.0.100.0170.04722.04
7.0.90.0130.07322.06
7.0.80.0130.05322.13
7.0.70.0070.05722.10
7.0.60.0070.05722.00
7.0.50.0170.08021.99
7.0.40.0070.05722.09
7.0.30.0100.05322.04
7.0.20.0170.06322.14
7.0.10.0100.05022.11
7.0.00.0100.05322.14
5.6.280.0030.06021.04
5.6.270.0170.04720.98
5.6.260.0070.05720.85
5.6.250.0030.05720.87
5.6.240.0130.05320.83
5.6.230.0070.06320.98
5.6.220.0070.06021.05
5.6.210.0000.06320.97
5.6.200.0030.08021.03
5.6.190.0070.06320.98
5.6.180.0070.05721.02
5.6.170.0100.06021.01
5.6.160.0070.06020.93
5.6.150.0030.08020.74
5.6.140.0070.06020.74
5.6.130.0100.07021.07
5.6.120.0100.06020.96
5.6.110.0130.05320.98
5.6.100.0170.05020.84
5.6.90.0070.05721.06
5.6.80.0100.05720.23
5.6.70.0070.05320.19
5.6.60.0070.05720.17
5.6.50.0030.05320.18
5.6.40.0000.05720.25
5.6.30.0100.05320.21
5.6.20.0130.06720.35
5.6.10.0070.05320.17
5.6.00.0100.05020.41

preferences:
85.63 ms | 401 KiB | 5 Q