3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "(Field1 = 'Val and ue1') and (Field2 = 'Valu or e2') or (Field3 = 'Value3')"; preg_match_all("~\((\S+ = '.*?')\) ?(or|and)?~", $input, $m, PREG_SET_ORDER); print_r($m);

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.00.0110.01019.90
8.4.150.0020.00014.05
8.4.140.0130.00917.54
8.4.130.0180.00817.83
8.4.120.0090.01123.97
8.4.110.0120.00820.59
8.4.100.0140.00618.76
8.4.90.0130.00720.38
8.4.80.0050.00419.69
8.4.70.0090.00817.82
8.4.60.0070.01318.89
8.4.50.0100.00619.68
8.4.40.0120.00319.48
8.4.30.0160.00320.70
8.4.20.0130.00717.86
8.4.10.0100.00720.15
8.3.280.0020.00014.05
8.3.270.0030.00716.70
8.3.260.0130.00616.64
8.3.250.0120.00617.02
8.3.240.0110.00817.08
8.3.230.0040.00416.84
8.3.220.0050.00417.02
8.3.210.0070.00916.68
8.3.200.0070.00916.66
8.3.190.0100.00817.01
8.3.180.0050.00318.71
8.3.170.0160.00316.84
8.3.160.0140.00416.72
8.3.150.0100.01016.89
8.3.140.0100.00716.43
8.3.130.0060.00316.54
8.3.120.0080.00018.79
8.3.110.0090.00620.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0040.00418.27
8.3.70.0040.01216.58
8.3.60.0110.00716.75
8.3.50.0100.00718.25
8.3.40.0150.00018.75
8.3.30.0110.00318.84
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0120.00920.41
8.2.280.0050.00318.95
8.2.270.0090.00916.56
8.2.260.0120.00619.08
8.2.250.0080.00016.73
8.2.240.0030.00619.00
8.2.230.0070.00022.58
8.2.220.0100.01037.54
8.2.210.0040.00426.77
8.2.200.0080.00316.75
8.2.190.0140.00416.88
8.2.180.0110.01125.92
8.2.170.0070.00718.91
8.2.160.0090.00622.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.05
8.2.110.0030.00719.27
8.2.100.0030.00917.72
8.2.90.0040.00417.91
8.2.80.0050.00319.03
8.2.70.0060.00317.75
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0050.00319.88
8.2.30.0000.00717.89
8.2.20.0050.00320.34
8.2.10.0070.00018.01
8.2.00.0070.00319.09
8.1.330.0110.00621.75
8.1.320.0140.00918.24
8.1.310.0040.00418.21
8.1.300.0030.00618.38
8.1.290.0080.00018.88
8.1.280.0120.00325.92
8.1.270.0050.00323.99
8.1.260.0090.00026.35
8.1.250.0120.00328.09
8.1.240.0000.01023.86
8.1.230.0040.00720.85
8.1.220.0000.00817.74
8.1.210.0030.00518.79
8.1.200.0090.00017.22
8.1.190.0030.00517.47
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0000.00718.91
8.1.150.0030.00618.78
8.1.140.0060.00317.49
8.1.130.0070.00018.86
8.1.120.0030.00317.60
8.1.110.0030.00517.49
8.1.100.0040.00417.43
8.1.90.0070.00017.57
8.1.80.0000.00917.54
8.1.70.0030.00317.45
8.1.60.0040.00417.66
8.1.50.0040.00417.59
8.1.40.0200.00317.57
8.1.30.0210.00317.61
8.1.20.0170.00917.65
8.1.10.0240.00017.70
8.1.00.0120.01217.58
8.0.300.0070.00020.10
8.0.290.0000.00816.75
8.0.280.0080.00018.36
8.0.270.0030.00616.85
8.0.260.0030.00318.44
8.0.250.0040.00416.91
8.0.240.0030.00316.94
8.0.230.0000.00817.05
8.0.220.0050.00317.00
8.0.210.0000.00717.02
8.0.200.0030.00317.09
8.0.190.0000.00917.09
8.0.180.0000.00716.88
8.0.170.0160.00416.93
8.0.160.0160.00516.86
8.0.150.0160.00416.87
8.0.140.0150.00416.94
8.0.130.0190.00016.82
8.0.120.0130.00616.97
8.0.110.0070.01216.92
8.0.100.0200.00016.80
8.0.90.0160.00317.02
8.0.80.0160.00416.90
8.0.70.0140.00716.80
8.0.60.0160.00316.95
8.0.50.0120.00816.84
8.0.30.0160.00316.86
8.0.20.0140.00716.92
8.0.10.0200.00017.16
7.4.330.0050.00015.55
7.4.320.0030.00316.55
7.4.300.0070.00316.63
7.4.290.0070.00016.70
7.4.280.0160.00816.66
7.4.270.0240.00016.71
7.4.260.0150.00716.70
7.4.250.0110.01116.70
7.4.240.0180.00416.69
7.4.230.0140.00916.71
7.4.220.0200.00016.70
7.4.210.0120.00616.54
7.4.200.0150.00616.71
7.4.190.0080.01116.61
7.4.180.0160.00316.65
7.4.160.0190.00016.54
7.4.150.0190.00216.62
7.4.140.0030.00516.63
7.4.130.0000.00816.70
7.4.120.0030.00616.65
7.4.110.0000.00716.43
7.4.100.0070.00316.80
7.4.90.0050.00516.63
7.4.80.0040.00716.64
7.4.70.0110.00016.54
7.4.60.0100.00016.54
7.4.50.0040.00416.51
7.4.40.0000.00916.46
7.4.30.0070.00216.41
7.4.20.0060.00616.18
7.4.10.0020.00916.43
7.4.00.0090.00316.55

preferences:
29.58 ms | 403 KiB | 5 Q