3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "code": "200002 - VALUE_TOO_LONG", "title": "Der von Ihnen gepflegte Wert ist zu lang. K\u00fcrzen Sie die den Wert entsprechend der Zeichenbegrenzung aus der API-Dokumentation.", "path": "\/products", "jsonPath": "$.productVariations[?(@.sku==\"506163\")].productDescription.bulletPoints" }'; $decode = json_decode($json, true); $re = '/\$.productVariations\[.*sku=="(.*)".*].(.*)/m'; preg_match($re, $decode['jsonPath'], $matches); if (!empty($matches)) { $sku = $matches[1]; $field = $matches[2]; } else { $re = '/\$.productVariations\[.*].(.*)/m'; preg_match($re, $decode['jsonPath'], $matches); $sku = '?'; $field = $matches[1]; } var_dump($sku); var_dump($field);

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.0090.01218.40
8.3.50.0140.00018.14
8.3.40.0100.01019.09
8.3.30.0120.00318.96
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0050.00326.16
8.2.180.0140.00425.92
8.2.170.0140.00719.21
8.2.160.0110.00422.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0050.00522.34
8.2.100.0040.00718.03
8.2.90.0080.00018.16
8.2.80.0030.00619.96
8.2.70.0000.00817.88
8.2.60.0040.00818.05
8.2.50.0030.00518.05
8.2.40.0060.00318.16
8.2.30.0000.00718.29
8.2.20.0000.00818.09
8.2.10.0050.00319.39
8.2.00.0040.00419.38
8.1.280.0070.00725.92
8.1.270.0090.00023.99
8.1.260.0040.00428.09
8.1.250.0090.00028.09
8.1.240.0000.01122.67
8.1.230.0100.00620.99
8.1.220.0080.00017.91
8.1.210.0030.00619.15
8.1.200.0050.00317.47
8.1.190.0050.00317.50
8.1.180.0040.00918.10
8.1.170.0000.00818.95
8.1.160.0070.00018.95
8.1.150.0000.00719.01
8.1.140.0030.00620.70
8.1.130.0070.00020.25
8.1.120.0000.00817.65
8.1.110.0000.00817.61
8.1.100.0030.00517.66
8.1.90.0000.00717.61
8.1.80.0000.00717.57
8.1.70.0040.00417.69
8.1.60.0000.00717.68
8.1.50.0040.00417.59
8.1.40.0050.00317.71
8.1.30.0050.00317.74
8.1.20.0050.00317.85
8.1.10.0000.00817.70
8.1.00.0120.00017.66
8.0.300.0050.00219.90
8.0.290.0030.00517.00
8.0.280.0000.00818.38
8.0.270.0050.00218.11
8.0.260.0030.00318.52
8.0.250.0040.00417.15
8.0.240.0030.00317.13
8.0.230.0000.00717.05
8.0.220.0070.00016.97
8.0.210.0040.00416.97
8.0.200.0000.00817.00
8.0.190.0040.00417.14
8.0.180.0050.00217.08
8.0.170.0030.00616.98
8.0.160.0050.00216.99
8.0.150.0030.00717.01
8.0.140.0000.00816.95
8.0.130.0050.00013.47
8.0.120.0000.00817.01
8.0.110.0080.00017.05
8.0.100.0000.00717.03
8.0.90.0040.00417.13
8.0.80.0070.01317.06
8.0.70.0070.00017.08
8.0.60.0040.00416.89
8.0.50.0000.00817.12
8.0.30.0070.01016.93
8.0.20.0200.00617.19
8.0.10.0090.01017.32
8.0.00.0120.00617.22
7.4.330.0000.00615.55
7.4.320.0040.00416.79
7.4.300.0000.00616.84
7.4.290.0000.00716.81
7.4.280.0000.00816.70
7.4.270.0040.00416.73
7.4.260.0000.00513.59
7.4.250.0000.00816.58
7.4.240.0000.00716.71
7.4.230.0000.00716.73
7.4.220.0050.00216.79
7.4.210.0090.00616.76
7.4.200.0000.00816.73
7.4.150.0100.00716.77
7.4.140.0150.00416.62
7.4.130.0100.00816.71
7.4.120.0100.01016.82
7.4.110.0150.00416.71
7.4.100.0140.00316.52
7.4.90.0100.00716.72
7.4.80.0060.01216.56
7.4.70.0030.01416.63
7.4.60.0110.00716.52
7.4.50.0090.00916.64
7.4.40.0120.01216.57
7.4.30.0060.01116.66
7.4.20.0080.01616.75
7.4.10.0130.00516.61
7.4.00.0070.01116.71
7.3.330.0000.00716.50
7.3.320.0030.00313.28
7.3.310.0000.00716.42
7.3.300.0070.00016.31
7.3.290.0110.00616.41
7.3.270.0150.00316.48
7.3.260.0040.01416.58
7.3.250.0030.01916.64
7.3.240.0120.00616.35
7.3.230.0120.00816.41
7.3.220.0120.00416.38
7.3.210.0100.00816.59
7.3.200.0100.01116.89
7.3.190.0030.01316.74
7.3.180.0000.01516.59
7.3.170.0120.01216.49
7.3.160.0160.00016.45
7.3.150.0090.01316.62
7.3.140.0120.00616.33
7.3.130.0120.00616.81
7.3.120.0090.00916.70
7.3.110.0100.00816.56
7.3.100.0130.00416.43
7.3.90.0070.01116.45
7.3.80.0100.00716.73
7.3.70.0060.01216.49
7.3.60.0050.01116.52
7.3.50.0130.00516.60
7.3.40.0030.01416.55
7.3.30.0120.01216.39
7.3.20.0120.01216.39
7.3.10.0350.00016.63
7.3.00.0210.00316.63

preferences:
44.96 ms | 400 KiB | 5 Q