3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "#^([^|]+)\|(\d+)([^|]+)\|(\d+)$#m"; $string = "Product 1|200Producht 392|150\nProduct 2|400Producht 592|250"; $matches = array(); $search = preg_match_all($pattern, $string, $matches, PREG_SET_ORDER); print_r($matches);

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.0170.00318.43
8.3.60.0070.01018.55
8.3.50.0120.00921.14
8.3.40.0120.00318.70
8.3.30.0030.01018.88
8.3.20.0080.00019.07
8.3.10.0070.00021.73
8.3.00.0070.00020.54
8.2.180.0070.00716.59
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00021.25
8.2.110.0060.00321.19
8.2.100.0080.00319.26
8.2.90.0070.00020.43
8.2.80.0050.00320.67
8.2.70.0080.00017.63
8.2.60.0030.00517.93
8.2.50.0030.00518.10
8.2.40.0060.00320.49
8.2.30.0040.00419.07
8.2.20.0000.00718.02
8.2.10.0000.00818.17
8.2.00.0000.00817.71
8.1.280.0140.00025.92
8.1.270.0080.00023.79
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0030.00622.07
8.1.230.0090.00320.97
8.1.220.0040.00417.74
8.1.210.0030.00618.80
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0000.00918.79
8.1.160.0030.00618.80
8.1.150.0000.00820.28
8.1.140.0030.00619.45
8.1.130.0000.00820.84
8.1.120.0080.00017.43
8.1.110.0030.00517.46
8.1.100.0030.00517.45
8.1.90.0000.00717.49
8.1.80.0030.00417.45
8.1.70.0030.00317.43
8.1.60.0040.00417.65
8.1.50.0060.00317.62
8.1.40.0000.00717.66
8.1.30.0040.00417.75
8.1.20.0040.00417.68
8.1.10.0060.00317.55
8.1.00.0050.00317.62
8.0.300.0030.00620.20
8.0.290.0060.00316.58
8.0.280.0040.00418.36
8.0.270.0050.00217.27
8.0.260.0000.00617.29
8.0.250.0070.00016.93
8.0.240.0040.00417.10
8.0.230.0050.00217.04
8.0.220.0030.00316.98
8.0.210.0030.00316.97
8.0.200.0000.00717.04
8.0.190.0030.00516.91
8.0.180.0000.00717.01
8.0.170.0040.00416.86
8.0.160.0000.00716.98
8.0.150.0030.00316.90
8.0.140.0000.00816.89
8.0.130.0000.00613.41
8.0.120.0000.00816.96
8.0.110.0040.00416.93
8.0.100.0070.00016.89
8.0.90.0000.00716.84
8.0.80.0060.00916.86
8.0.70.0040.00416.93
8.0.60.0050.00317.04
8.0.50.0050.00216.95
8.0.30.0140.00517.25
8.0.20.0090.01117.40
8.0.10.0000.00716.93
8.0.00.0160.00816.99
7.4.330.0050.00015.55
7.4.320.0060.00016.75
7.4.300.0050.00216.74
7.4.290.0000.00816.72
7.4.280.0040.00416.73
7.4.270.0000.00716.72
7.4.260.0030.00616.76
7.4.250.0070.00016.75
7.4.240.0040.00316.61
7.4.230.0000.00716.49
7.4.220.0030.01416.65
7.4.210.0070.00716.79
7.4.200.0030.00316.85
7.4.160.0100.00616.60
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0130.00416.62
7.4.120.0150.00316.65
7.4.110.0070.01716.68
7.4.100.0000.01716.33
7.4.90.0050.01116.55
7.4.80.0080.00819.39
7.4.70.0030.01416.63
7.4.60.0090.00616.54
7.4.50.0060.01016.47
7.4.40.0000.01716.48
7.4.30.0120.00916.73
7.4.00.0110.00315.05
7.3.330.0030.00313.15
7.3.320.0060.00013.27
7.3.310.0030.00316.34
7.3.300.0040.00416.07
7.3.290.0100.00516.28
7.3.280.0120.00816.30
7.3.270.0060.01217.40
7.3.260.0060.01116.56
7.3.250.0100.01016.45
7.3.240.0100.00716.53
7.3.230.0060.01516.39
7.3.210.0110.00916.25
7.3.200.0100.00616.49
7.3.190.0040.01416.29
7.3.180.0060.01016.61
7.3.170.0030.01416.75
7.3.160.0090.01216.22
7.3.10.0160.00516.73
7.3.00.0110.01516.61
7.2.330.0060.01216.64
7.2.320.0100.00616.49
7.2.310.0060.01016.68
7.2.300.0130.01016.61
7.2.290.0100.00716.61
7.2.130.0210.00316.52
7.2.120.0260.01616.85
7.2.110.0190.00916.55
7.2.100.0380.00516.76
7.2.90.0140.00716.84
7.2.80.0200.01017.09
7.2.70.0120.00916.58
7.2.60.0090.01116.77
7.2.50.0150.01516.68
7.2.40.0090.01616.76
7.2.30.0220.00916.70
7.2.20.0190.00316.69
7.2.10.0100.01716.66
7.2.00.0120.00416.67
7.1.250.0240.00715.70
7.1.200.0100.00315.67
7.1.70.0000.00717.39
7.1.60.0000.01117.37
7.1.00.0730.06720.65
7.0.200.0140.00314.89
7.0.140.0670.06020.14
7.0.130.0500.05720.17
7.0.120.0670.06020.34
7.0.110.0400.07020.25
7.0.100.0770.08020.34
7.0.90.0800.06720.47
7.0.80.0530.05020.22
7.0.70.0200.05020.23
7.0.60.0470.06020.17
7.0.50.0630.05720.18
7.0.40.0500.08020.24
7.0.30.0800.06720.40
7.0.20.0170.07321.89
7.0.10.1000.07720.18
7.0.00.0270.07321.97
5.6.290.0270.05720.95
5.6.280.0130.05720.86
5.6.270.0130.06321.03
5.6.260.0270.05020.81
5.6.250.0170.05321.09
5.6.240.0100.06320.88
5.6.230.0100.07020.77
5.6.220.0130.07720.93
5.6.210.0230.07320.91
5.6.200.0100.07720.88
5.6.190.0200.05321.01
5.6.180.0270.06020.86
5.6.170.0130.06720.99
5.6.160.0030.07021.06
5.6.150.0100.06320.80
5.6.140.0070.07021.02
5.6.130.0130.05321.07
5.6.120.0070.06320.85
5.6.110.0130.05720.71
5.6.100.0100.07020.82
5.6.90.0100.05721.05
5.6.80.0070.05720.41
5.6.70.0200.04720.44
5.6.60.0170.06720.10
5.6.50.0130.07320.37
5.6.40.0300.05020.25
5.6.30.0070.06720.23
5.6.20.0230.05720.40
5.6.10.0100.05720.16
5.6.00.0100.06020.33

preferences:
58.76 ms | 401 KiB | 5 Q