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 = '/\$..*\[.*].(.*)/m'; preg_match($re, $decode['jsonPath'], $matches); if (!empty($matches)) { $field = $matches[1]; } 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.0160.00018.54
8.3.50.0110.00418.13
8.3.40.0070.00718.85
8.3.30.0120.00419.02
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0100.01025.92
8.2.170.0140.00719.21
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.01420.74
8.2.110.0060.00320.50
8.2.100.0090.00319.88
8.2.90.0040.00417.63
8.2.80.0040.00419.04
8.2.70.0080.00017.75
8.2.60.0040.00418.05
8.2.50.0030.00518.05
8.2.40.0040.00418.28
8.2.30.0080.00018.15
8.2.20.0000.00718.22
8.2.10.0000.00819.33
8.2.00.0000.00719.45
8.1.280.0120.00625.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.07
8.1.230.0000.01217.83
8.1.220.0040.00417.80
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0000.00817.48
8.1.180.0040.00718.10
8.1.170.0050.00518.76
8.1.160.0040.00418.92
8.1.150.0030.00318.99
8.1.140.0040.00420.74
8.1.130.0070.00020.09
8.1.120.0040.00417.61
8.1.110.0040.00417.50
8.1.100.0080.00017.64
8.1.90.0040.00417.63
8.1.80.0040.00417.61
8.1.70.0000.00917.60
8.1.60.0090.00017.62
8.1.50.0050.00317.65
8.1.40.0030.00617.56
8.1.30.0050.00317.73
8.1.20.0060.00317.87
8.1.10.0030.00617.61
8.1.00.0030.00617.63
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0040.00418.37
8.0.270.0000.00718.17
8.0.260.0000.00618.49
8.0.250.0000.00717.09
8.0.240.0030.00317.04
8.0.230.0000.00716.98
8.0.220.0070.00016.99
8.0.210.0000.00816.95
8.0.200.0070.00017.01
8.0.190.0000.00917.12
8.0.180.0040.00417.04
8.0.170.0040.00416.95
8.0.160.0000.00717.10
8.0.150.0000.00916.96
8.0.140.0000.00716.90
8.0.130.0060.00013.51
8.0.120.0000.00716.91
8.0.110.0000.00717.04
8.0.100.0000.00716.91
8.0.90.0040.00416.95
8.0.80.0100.01016.97
8.0.70.0040.00416.86
8.0.60.0000.00716.83
8.0.50.0040.00416.95
8.0.30.0130.00317.17
8.0.20.0070.01117.00
8.0.10.0130.00617.32
8.0.00.0150.00617.13
7.4.330.0000.00515.55
7.4.320.0060.00016.84
7.4.300.0060.00016.74
7.4.290.0070.00016.82
7.4.280.0050.00316.68
7.4.270.0030.00316.73
7.4.260.0000.00513.50
7.4.250.0000.00716.56
7.4.240.0000.00716.82
7.4.230.0040.00416.83
7.4.220.0040.00416.65
7.4.210.0060.00916.75
7.4.200.0040.00416.80
7.4.150.0070.01416.49
7.4.140.0130.00416.61
7.4.130.0100.00716.75
7.4.120.0190.00316.87
7.4.110.0140.00416.73
7.4.100.0000.01816.84
7.4.90.0120.00616.60
7.4.80.0030.01416.63
7.4.70.0120.00616.71
7.4.60.0140.00316.65
7.4.50.0120.00616.65
7.4.40.0130.00316.66
7.4.30.0000.01716.79
7.4.20.0120.00616.79
7.4.10.0110.00616.85
7.4.00.0100.01016.68
7.3.330.0070.00016.37
7.3.320.0060.00013.10
7.3.310.0030.00316.30
7.3.300.0050.00316.28
7.3.290.0090.00616.34
7.3.270.0100.00616.61
7.3.260.0110.00516.33
7.3.250.0120.00916.37
7.3.240.0100.00716.77
7.3.230.0120.00616.33
7.3.220.0070.01016.87
7.3.210.0070.01116.66
7.3.200.0090.00916.79
7.3.190.0070.01016.44
7.3.180.0090.00916.35
7.3.170.0120.00416.48
7.3.160.0110.00816.63
7.3.150.0150.00416.41
7.3.140.0140.00516.19
7.3.130.0140.00316.73
7.3.120.0060.01316.38
7.3.110.0140.00416.69
7.3.100.0120.00616.31
7.3.90.0140.00416.67
7.3.80.0150.00316.58
7.3.70.0120.00616.43
7.3.60.0070.01016.54
7.3.50.0100.00716.52
7.3.40.0130.00316.54
7.3.30.0060.01016.45
7.3.20.0140.00716.45
7.3.10.0120.00816.38
7.3.00.0040.01416.34

preferences:
43.66 ms | 400 KiB | 5 Q