3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'id'; $pattern = ' ~^ (?: (?:(?P<function>function)\s*\(\s* (?:(?P<table1>.+)(?:\.))?(?P<column1>[^ ]+) \s*\)) | (?:(?P<table2>.+)(?:\.))?(?P<column2>[^ ]+) ) (?:\s+as\s+(?P<alias>.+))? $~ix '; var_dump(preg_match($pattern, $string, $fieldParts)); var_dump(preg_last_error());

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.5.30.0110.00619.45
8.5.20.0080.00919.59
8.5.10.0130.00618.77
8.5.00.0150.01020.01
8.4.180.0110.01122.15
8.4.170.0100.01221.89
8.4.160.0090.01321.80
8.4.150.0080.00516.93
8.4.140.0120.00917.68
8.4.130.0110.00619.02
8.4.120.0090.00924.02
8.4.110.0090.01022.63
8.4.100.0140.00717.94
8.4.90.0130.00618.10
8.4.80.0100.00720.58
8.4.70.0040.00718.80
8.4.60.0120.00518.98
8.4.50.0120.00918.52
8.4.40.0130.00619.30
8.4.30.0030.00719.43
8.4.20.0060.01320.79
8.4.10.0130.00319.59
8.3.300.0110.00918.45
8.3.290.0140.00820.93
8.3.280.0130.00718.56
8.3.270.0140.01116.45
8.3.260.0130.00716.66
8.3.250.0100.00917.30
8.3.240.0120.00416.98
8.3.230.0080.00416.61
8.3.220.0100.00817.00
8.3.210.0150.00616.83
8.3.200.0060.00216.63
8.3.190.0090.01117.22
8.3.180.0110.00818.75
8.3.170.0040.01418.82
8.3.160.0100.01017.06
8.3.150.0040.00416.70
8.3.140.0000.00818.77
8.3.130.0030.00618.36
8.3.120.0080.00020.68
8.3.110.0000.00920.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0000.00918.55
8.3.70.0100.01018.40
8.3.60.0110.00718.43
8.3.50.0080.00717.42
8.3.40.0120.00618.86
8.3.30.0040.01118.64
8.3.20.0090.00020.60
8.3.10.0030.00521.91
8.3.00.0000.00822.43
8.2.300.0130.00721.94
8.2.290.0110.00820.72
8.2.280.0050.00318.38
8.2.270.0130.00316.73
8.2.260.0150.00016.80
8.2.250.0040.00416.98
8.2.240.0050.00317.27
8.2.230.0060.00322.58
8.2.220.0030.00537.54
8.2.210.0080.00026.77
8.2.200.0080.00318.41
8.2.190.0100.01016.75
8.2.180.0110.01116.63
8.2.170.0170.00022.96
8.2.160.0070.00721.14
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00419.82
8.2.120.0040.00426.35
8.2.110.0000.00920.35
8.2.100.0060.00617.72
8.2.90.0000.00817.63
8.2.80.0030.00517.97
8.2.70.0000.00817.80
8.2.60.0050.00318.09
8.2.50.0000.00818.10
8.2.40.0060.00319.17
8.2.30.0050.00319.20
8.2.20.0000.00717.94
8.2.10.0040.00419.24
8.2.00.0000.00718.20
8.1.340.0120.00823.47
8.1.330.0120.00716.72
8.1.320.0090.00920.16
8.1.310.0060.00916.48
8.1.300.0030.00620.00
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0070.00020.38
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0000.01023.79
8.1.230.0040.00821.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0030.00618.78
8.1.160.0000.00718.84
8.1.150.0040.00418.79
8.1.140.0040.00419.00
8.1.130.0000.00720.16
8.1.120.0080.00317.52
8.1.110.0000.00717.54
8.1.100.0040.00417.56
8.1.90.0050.00317.47
8.1.80.0030.00617.55
8.1.70.0000.00717.45
8.1.60.0090.00017.57
8.1.50.0000.00817.64
8.1.40.0060.00317.49
8.1.30.0060.00617.66
8.1.20.0030.00517.67
8.1.10.0030.00617.68
8.1.00.0040.00417.52
8.0.300.0070.00019.82
8.0.290.0030.00616.58
8.0.280.0000.00818.39
8.0.270.0030.00317.09
8.0.260.0030.00318.34
8.0.250.0060.00317.06
8.0.240.0000.00716.93
8.0.230.0040.00416.96
8.0.220.0070.00017.02
8.0.210.0030.00316.84
8.0.200.0040.00416.93
8.0.190.0040.00417.07
8.0.180.0040.00416.96
8.0.170.0040.00417.00
8.0.160.0050.00217.03
8.0.150.0030.00716.86
8.0.140.0000.00716.79
8.0.130.0030.00313.36
8.0.120.0040.00416.93
8.0.110.0030.00617.02
8.0.100.0040.00416.97
8.0.90.0070.00017.07
8.0.80.0000.01516.95
8.0.70.0000.00716.86
8.0.60.0040.00416.80
8.0.50.0050.00217.04
8.0.30.0120.00817.31
8.0.20.0150.01216.96
8.0.10.0000.00817.16
8.0.00.0100.00916.89
7.4.330.0000.00516.91
7.4.320.0060.00016.66
7.4.300.0030.00316.60
7.4.290.0000.00616.77
7.4.280.0080.00016.74
7.4.270.0070.00016.71
7.4.260.0030.00316.56
7.4.250.0070.00016.56
7.4.240.0030.00316.71
7.4.230.0000.00716.85
7.4.220.0050.00316.65
7.4.210.0080.00916.73
7.4.200.0000.00716.75
7.4.160.0120.00516.68
7.4.140.0140.00317.86
7.4.130.0170.00716.55
7.4.120.0110.00616.65
7.4.110.0080.00816.62
7.4.100.0100.00716.89
7.4.90.0080.00916.70
7.4.80.0080.00819.39
7.4.70.0090.00816.52
7.4.60.0130.00416.45
7.4.50.0130.00316.55
7.4.40.0080.00816.82
7.4.00.0100.00615.00
7.3.330.0050.00013.16
7.3.320.0060.00013.26
7.3.310.0040.00416.40
7.3.300.0070.00016.33
7.3.290.0000.00716.13
7.3.280.0120.00316.29
7.3.260.0130.00516.41
7.3.240.0110.00716.43
7.3.230.0090.00916.48
7.3.210.0130.00316.72
7.3.200.0040.01216.70
7.3.190.0090.00816.66
7.3.180.0150.00316.50
7.3.170.0160.00616.44
7.3.160.0110.00916.59
7.3.120.0180.00014.70
7.3.110.0090.00914.77
7.3.100.0060.00614.47
7.3.90.0070.01014.80
7.3.80.0040.00815.19
7.3.70.0060.00614.85
7.3.60.0040.01114.70
7.3.50.0000.01114.87
7.3.40.0060.00914.89
7.3.30.0040.01114.81
7.3.20.0330.01315.72
7.3.10.0690.00615.74
7.3.00.0360.00315.58
7.2.330.0090.00916.48
7.2.320.0090.00916.65
7.2.310.0110.00616.70
7.2.300.0060.01016.77
7.2.290.0110.00616.62
7.2.250.0060.01014.67
7.2.240.0040.01415.04
7.2.230.0120.00615.18
7.2.220.0040.01115.16
7.2.210.0030.01014.60
7.2.200.0060.00614.63
7.2.190.0000.01514.54
7.2.180.0030.01315.13
7.2.170.0140.00015.14
7.2.160.0030.00714.80
7.2.150.0700.00314.88
7.2.140.0690.01014.96
7.2.130.0870.01014.91
7.2.120.0650.01014.75
7.2.110.0670.00714.93
7.2.100.0750.00314.82
7.2.90.0630.01014.75
7.2.80.0670.00314.92
7.2.70.0670.00314.64
7.2.60.0800.00314.91
7.2.50.0730.00715.00
7.2.40.0750.01014.97
7.2.30.0660.00315.04
7.2.20.0670.00314.72
7.2.10.0660.00315.02
7.2.00.0790.00714.75
7.1.330.0140.00015.87
7.1.320.0000.01415.99
7.1.310.0040.01116.11
7.1.300.0030.01015.50
7.1.290.0070.01015.89
7.1.280.0090.00616.07
7.1.270.0500.00514.73
7.1.260.0460.00214.91
7.1.250.0710.00713.89

preferences:
111.49 ms | 1479 KiB | 5 Q