3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('~^(hello\#world)\z~', 'hello#world')); var_dump(preg_match('~^(hello\#world)\z~x', 'hello#world')); var_dump(preg_match('~^(hello#world)\z~', 'hello#world')); var_dump(preg_match('~^(hello#world)\z~x', 'hello#world'));

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.0100.00618.55
8.3.50.0040.01118.19
8.3.40.0070.01418.97
8.3.30.0040.01118.85
8.3.20.0070.00020.25
8.3.10.0070.00021.92
8.3.00.0040.00423.61
8.2.180.0120.00316.50
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00621.25
8.2.110.0090.00321.09
8.2.100.0060.00618.03
8.2.90.0060.00318.93
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00917.80
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0040.00419.20
8.2.20.0000.00717.99
8.2.10.0030.00617.87
8.2.00.0000.00817.90
8.1.280.0190.00325.92
8.1.270.0110.00620.41
8.1.260.0110.00726.35
8.1.250.0000.00928.09
8.1.240.0080.00023.82
8.1.230.0040.00818.93
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0000.00817.13
8.1.180.0040.00420.25
8.1.170.0050.00318.71
8.1.160.0070.00018.66
8.1.150.0050.00319.97
8.1.140.0040.00417.55
8.1.130.0030.00718.84
8.1.120.0040.00417.54
8.1.110.0060.00317.43
8.1.100.0040.00417.43
8.1.90.0040.00417.38
8.1.80.0070.00017.41
8.1.70.0030.00617.47
8.1.60.0060.00617.55
8.1.50.0050.00217.59
8.1.40.0080.00017.48
8.1.30.0040.00417.69
8.1.20.0040.00417.66
8.1.10.0030.00517.48
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0080.00018.33
8.0.270.0040.00417.08
8.0.260.0040.00418.52
8.0.250.0000.00717.05
8.0.240.0000.00716.98
8.0.230.0030.00317.04
8.0.220.0030.00316.87
8.0.210.0040.00416.85
8.0.200.0000.00717.00
8.0.190.0040.00416.92
8.0.180.0000.01017.00
8.0.170.0070.00016.86
8.0.160.0000.00816.95
8.0.150.0050.00316.93
8.0.140.0040.00416.93
8.0.130.0000.00513.43
8.0.120.0030.00616.89
8.0.110.0050.00317.00
8.0.100.0000.00817.04
8.0.90.0000.00716.99
8.0.80.0040.01116.90
8.0.70.0040.00416.95
8.0.60.0040.00416.96
8.0.50.0040.00416.98
8.0.30.0060.01117.15
8.0.20.0100.00817.40
8.0.10.0000.00717.13
8.0.00.0100.00716.77
7.4.330.0000.00515.55
7.4.320.0080.00016.59
7.4.300.0070.00016.58
7.4.290.0070.00016.66
7.4.280.0050.00316.68
7.4.270.0000.00716.61
7.4.260.0030.00316.63
7.4.250.0050.00216.56
7.4.240.0030.00316.53
7.4.230.0050.00316.70
7.4.220.0100.01016.48
7.4.210.0170.00316.79
7.4.200.0000.00716.48
7.4.160.0100.00616.49
7.4.150.0060.01017.40
7.4.140.0080.01317.86
7.4.130.0100.00716.59
7.4.120.0120.00916.65
7.4.110.0070.01016.48
7.4.100.0130.00716.72
7.4.90.0120.00616.57
7.4.80.0110.01119.39
7.4.70.0040.01816.64
7.4.60.0100.00716.48
7.4.50.0090.00616.55
7.4.40.0090.00616.51
7.4.30.0090.01216.58
7.4.00.0090.00615.17
7.3.330.0000.00613.18
7.3.320.0030.00313.25
7.3.310.0000.00716.28
7.3.300.0030.00316.25
7.3.290.0080.00816.35
7.3.280.0070.01016.34
7.3.270.0100.00717.40
7.3.260.0150.00516.37
7.3.250.0060.01316.49
7.3.240.0100.00716.51
7.3.230.0140.00316.59
7.3.210.0120.00616.56
7.3.200.0130.00416.32
7.3.190.0060.00916.24
7.3.180.0060.00916.48
7.3.170.0040.01216.35
7.3.160.0090.00616.47
7.2.330.0080.00816.60
7.2.320.0070.01116.74
7.2.310.0090.01216.43
7.2.300.0040.01316.51
7.2.290.0000.01716.48
7.2.60.0070.00716.85
7.1.200.0000.00815.81
7.1.100.0190.00816.23
7.1.90.0120.01216.30
7.1.80.0150.00715.99
7.1.70.5200.01015.35
7.1.60.3820.01733.41
7.1.50.2120.01032.98
7.1.40.3260.00732.75
7.1.30.3550.01332.93
7.1.20.2110.01332.77
7.1.10.1870.01314.81
7.1.00.3090.01014.93
7.0.240.0130.00716.04
7.0.230.0150.01216.08
7.0.220.0120.00915.89
7.0.210.3160.01014.73
7.0.200.4510.00714.87
7.0.190.4910.01315.00
7.0.180.3400.00714.41
7.0.170.2740.00314.51
7.0.160.2720.00714.54
7.0.150.1540.00714.43
7.0.140.1930.01414.50
7.0.130.3080.01014.78
7.0.120.3020.00714.67
7.0.110.1980.00714.54
7.0.100.2060.00714.58
7.0.90.1910.00714.52
7.0.80.1930.01014.55
7.0.70.1900.01014.62
7.0.60.3150.01314.22
7.0.50.3300.00714.80
7.0.40.2970.00714.72
7.0.30.2860.01014.70
7.0.20.1560.00714.82
7.0.10.2020.01314.68
7.0.00.1820.00714.90

preferences:
54.2 ms | 400 KiB | 5 Q