3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = <<<'REGEX' ~ (?(DEFINE) (?<dqstring> " [^\\"]*+ (?s: \\ . [^\\"]* )*+ " ) (?<bcontent> [^()"]*+ (?: \g<dqstring> [^()"]* )*+ ) (?<rbrackets> \( \g<bcontent> (?: \g<rbrackets> \g<bcontent> )*+ \) ) (?<pcontent> [^,()"]* (?: (?: \g<dqstring> | \g<rbrackets> ) [^,()"]* )* ) ) \G [(,] \s* (?<param> \g<pcontent> ) (*:param) | (?<funcName> \w+ ) (*:funcName) ~xu REGEX; $str = 'not(matches(#[Sécurité][Alarme][Mode]#, ["Desarmer",{"action":"Desarmer Sys"}]), result)'; preg_match_all($pattern, $str, $matches, PREG_SET_ORDER); foreach($matches as $m) { $type = $m['MARK']; echo "$type: ", $m[$type], PHP_EOL; }

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.70.0110.01018.89
8.5.60.0080.00317.23
8.5.50.0030.00416.87
8.5.30.0080.01020.04
8.5.20.0110.00620.24
8.5.10.0110.00618.70
8.5.00.0170.00920.16
8.4.210.0140.01021.75
8.4.180.0100.01122.14
8.4.170.0080.01323.93
8.4.160.0150.00824.00
8.4.150.0070.00616.97
8.4.140.0120.00918.04
8.4.130.0100.01017.76
8.4.120.0100.00920.55
8.4.110.0050.00422.26
8.4.100.0120.00618.12
8.4.90.0120.00920.49
8.4.80.0060.00219.01
8.4.70.0160.00319.07
8.4.60.0070.00420.79
8.4.50.0120.00818.97
8.4.40.0040.00419.84
8.4.30.0200.00018.81
8.4.20.0100.01018.21
8.4.10.0040.00422.01
8.3.300.0120.01018.82
8.3.290.0100.01118.80
8.3.280.0080.00416.24
8.3.270.0170.00716.91
8.3.260.0040.00516.98
8.3.250.0090.00719.15
8.3.240.0120.00816.77
8.3.230.0080.01116.78
8.3.220.0100.00920.93
8.3.210.0110.00616.88
8.3.200.0040.00516.87
8.3.190.0020.00617.20
8.3.180.0070.01216.75
8.3.170.0050.00316.82
8.3.160.0110.00716.90
8.3.150.0070.01117.34
8.3.140.0080.00017.32
8.3.130.0090.00918.75
8.3.120.0040.01418.96
8.3.110.0050.00320.94
8.3.100.0080.00316.96
8.3.90.0050.00326.77
8.3.80.0030.00616.75
8.3.70.0030.01318.55
8.3.60.0090.00616.50
8.3.50.0040.01120.32
8.3.40.0120.00319.09
8.3.30.0040.01119.16
8.3.20.0060.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.300.0140.00520.38
8.2.290.0070.00417.44
8.2.280.0140.00520.42
8.2.270.0130.00616.94
8.2.260.0060.00917.17
8.2.250.0130.00616.86
8.2.240.0090.00018.93
8.2.230.0080.00822.58
8.2.220.0030.00524.06
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0040.01416.88
8.2.180.0030.02025.92
8.2.170.0110.00419.25
8.2.160.0100.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00826.16
8.2.110.0060.00321.25
8.2.100.0000.01118.28
8.2.90.0070.00418.07
8.2.80.0040.00418.22
8.2.70.0040.00417.75
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0000.00818.40
8.2.30.0000.00718.27
8.2.20.0040.00420.64
8.2.10.0080.00018.28
8.2.00.0050.00219.31
8.1.340.0120.00917.94
8.1.330.0050.00318.33
8.1.320.0060.01224.11
8.1.310.0030.00520.24
8.1.300.0030.00619.95
8.1.290.0090.00030.84
8.1.280.0070.01125.92
8.1.270.0050.00223.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.37
8.1.230.0060.00621.04
8.1.220.0060.00317.91
8.1.210.0040.00418.91
8.1.200.0040.00417.60
8.1.190.0040.00417.60
8.1.180.0080.00018.10
8.1.170.0000.00818.96
8.1.160.0000.00719.02
8.1.150.0040.00418.79
8.1.140.0040.00417.77
8.1.130.0040.00419.09
8.1.120.0000.00717.66
8.1.110.0030.00617.66
8.1.100.0000.00817.61
8.1.90.0000.00817.69
8.1.80.0030.00717.54
8.1.70.0070.00017.54
8.1.60.0040.00417.66
8.1.50.0130.01317.61
8.1.40.0210.00417.58
8.1.30.0150.00917.72
8.1.20.0240.00017.75
8.1.10.0210.00317.67
8.1.00.0200.00317.64
8.0.300.0040.00420.16
8.0.290.0040.00417.00
8.0.280.0000.00718.50
8.0.270.0040.00417.08
8.0.260.0000.00618.46
8.0.250.0030.00517.29
8.0.240.0030.00317.30
8.0.230.0030.00317.18
8.0.220.0050.00317.17
8.0.210.0000.00717.30
8.0.200.0030.00317.29
8.0.190.0040.00417.19
8.0.180.0150.00617.12
8.0.170.0180.00317.16
8.0.160.0140.00717.14
8.0.150.0120.00917.16
8.0.140.0180.00317.15
8.0.130.0200.00316.99
8.0.120.0180.00317.15
8.0.110.0190.00317.18
8.0.100.0170.00417.32
8.0.90.0150.00817.26
8.0.80.0190.00317.21
8.0.70.0180.00317.18
8.0.60.0200.00017.13
8.0.50.0130.00917.25
8.0.30.0130.00817.29
8.0.20.0170.00317.21
8.0.10.0140.00517.21
7.4.330.0050.00015.55
7.4.320.0030.00316.91
7.4.300.0030.00316.95
7.4.290.0220.00716.84
7.4.280.0110.00816.46
7.4.270.0120.00616.73
7.4.260.0030.01316.51
7.4.250.0060.00616.49
7.4.240.0100.00716.48
7.4.230.0100.00516.64
7.4.220.0100.00316.41
7.4.210.0100.00616.31
7.4.200.0040.01116.55
7.4.190.0080.00316.46
7.4.180.0120.00016.52
7.4.160.0120.00016.42
7.4.150.0130.00016.48
7.4.140.0110.00016.28
7.4.130.0100.00016.51
7.4.120.0120.00016.49
7.4.110.0070.00516.58
7.4.100.0110.00216.50
7.4.90.0130.00316.34
7.4.80.0090.00616.59
7.4.70.0070.00416.38
7.4.60.0060.00616.71
7.4.50.0100.00716.32
7.4.40.0160.00416.22
7.4.30.0070.01316.38
7.4.20.0160.00016.48
7.4.10.0050.00216.72
7.4.00.0100.00416.41

preferences:
44.85 ms | 1271 KiB | 5 Q