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[?(@.scu==\"506163\")].productDescription.bulletPoints" }'; $decode = json_decode($json, true); $re = '/\$.productVariations\[.*sku=="(.*)".*].(.*)/m'; preg_match($re, $decode['jsonPath'], $matches); if (!empty($matches)) { var_dump($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.0110.01116.75
8.3.50.0120.00318.42
8.3.40.0070.01418.79
8.3.30.0110.00718.88
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.180.0070.01125.92
8.2.170.0100.01019.39
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0070.00322.36
8.2.100.0080.00317.97
8.2.90.0000.00818.34
8.2.80.0050.00317.97
8.2.70.0030.00617.71
8.2.60.0060.00318.05
8.2.50.0040.00418.05
8.2.40.0000.00818.25
8.2.30.0040.00418.23
8.2.20.0040.00418.25
8.2.10.0040.00419.37
8.2.00.0000.00719.27
8.1.280.0120.00325.92
8.1.270.0090.00023.99
8.1.260.0050.00228.09
8.1.250.0060.00328.09
8.1.240.0050.00523.92
8.1.230.0090.00320.91
8.1.220.0040.00417.91
8.1.210.0040.00418.97
8.1.200.0000.00817.38
8.1.190.0060.00317.48
8.1.180.0050.00518.10
8.1.170.0040.00418.94
8.1.160.0030.00618.96
8.1.150.0000.00719.00
8.1.140.0020.00520.70
8.1.130.0050.00320.23
8.1.120.0000.00717.64
8.1.110.0040.00417.64
8.1.100.0000.00717.69
8.1.90.0000.00817.64
8.1.80.0070.00017.65
8.1.70.0000.00717.65
8.1.60.0040.00417.74
8.1.50.0000.00817.71
8.1.40.0050.00317.64
8.1.30.0000.00817.75
8.1.20.0000.00817.91
8.1.10.0030.00517.78
8.1.00.0100.00017.57
8.0.300.0040.00420.12
8.0.290.0040.00417.00
8.0.280.0070.00018.39
8.0.270.0000.00818.25
8.0.260.0000.00718.53
8.0.250.0050.00317.05
8.0.240.0000.00817.22
8.0.230.0070.00017.15
8.0.220.0000.00716.96
8.0.210.0040.00417.00
8.0.200.0030.00317.04
8.0.190.0000.00717.12
8.0.180.0000.00717.00
8.0.170.0040.00417.12
8.0.160.0070.00017.07
8.0.150.0080.00016.96
8.0.140.0040.00416.98
8.0.130.0050.00013.53
8.0.120.0050.00316.95
8.0.110.0000.00816.99
8.0.100.0070.00016.96
8.0.90.0050.00216.99
8.0.80.0070.00817.05
8.0.70.0040.00416.89
8.0.60.0040.00417.16
8.0.50.0000.00717.04
8.0.30.0060.01117.37
8.0.20.0090.01117.26
8.0.10.0110.00817.45
8.0.00.0150.01117.52
7.4.330.0050.00015.55
7.4.320.0030.00316.91
7.4.300.0070.00016.85
7.4.290.0000.00816.73
7.4.280.0000.00816.77
7.4.270.0030.00316.91
7.4.260.0050.00013.53
7.4.250.0050.00216.76
7.4.240.0040.00416.79
7.4.230.0000.00816.84
7.4.220.0040.00416.57
7.4.210.0070.00916.81
7.4.200.0030.00316.78
7.4.150.0160.00316.69
7.4.140.0110.00716.82
7.4.130.0100.01016.88
7.4.120.0120.00616.84
7.4.110.0100.01016.62
7.4.100.0060.01316.86
7.4.90.0120.00616.80
7.4.80.0180.00016.73
7.4.70.0070.01116.58
7.4.60.0030.01416.53
7.4.50.0140.00516.77
7.4.40.0110.00816.57
7.4.30.0100.00816.71
7.4.20.0060.01216.63
7.4.10.0070.01116.85
7.4.00.0100.00716.61
7.3.330.0040.00416.54
7.3.320.0030.00313.28
7.3.310.0040.00416.34
7.3.300.0070.00016.39
7.3.290.0090.00816.37
7.3.270.0120.00616.41
7.3.260.0080.00816.55
7.3.250.0090.00916.61
7.3.240.0110.00816.61
7.3.230.0070.01016.41
7.3.220.0100.00716.43
7.3.210.0060.01216.32
7.3.200.0160.00316.79
7.3.190.0110.00816.75
7.3.180.0060.01116.48
7.3.170.0150.00316.63
7.3.160.0170.00016.74
7.3.150.0100.00716.39
7.3.140.0060.01216.68
7.3.130.0140.00316.65
7.3.120.0130.00616.75
7.3.110.0070.01716.80
7.3.100.0070.01016.73
7.3.90.0120.00616.63
7.3.80.0100.00716.33
7.3.70.0130.00416.51
7.3.60.0090.00816.58
7.3.50.0040.01216.63
7.3.40.0070.01016.46
7.3.30.0100.00716.62
7.3.20.0140.00716.74
7.3.10.0080.01116.58
7.3.00.0120.00616.56

preferences:
76.36 ms | 400 KiB | 5 Q