3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "@attributes": { "count": "1" }, "receipt": { "@attributes": { "currency": "USD", "rotation": "RT_Clockwise" }, "vendor": { "@attributes": { "confidence": "0.000", "isSuspicious": "true" }, "name": { "recognizedValue": { "text": "SEATTLE" } }, "fullAddress": { "text": {} }, "address": { "text": {} }, "phone": { "@attributes": { "confidence": "70", "isSuspicious": "true" }, "normalizedValue": "2066219777", "recognizedValue": { "text": "206\n621\n9777" } }, "purchaseType": "GasolineStation", "city": { "normalizedValue": "Seattle", "recognizedValue": { "text": "SEATTLE" } }, "zip": { "@attributes": { "confidence": "99", "isSuspicious": "false" }, "normalizedValue": "98134", "recognizedValue": { "text": "98134" } }, "administrativeRegion": { "normalizedValue": "WA", "recognizedValue": { "text": "WA" } } }, "date": { "@attributes": { "confidence": "100", "isSuspicious": "false" }, "normalizedValue": "2020-04-02", "recognizedValue": { "text": "04/02/20" } }, "time": { "@attributes": { "confidence": "100", "isSuspicious": "false" }, "normalizedValue": "14:17:49", "recognizedValue": { "text": "14:17:49" } }, "total": { "@attributes": { "confidence": "34", "isSuspicious": "true" }, "normalizedValue": "150.00", "recognizedValue": { "text": "150\n00" } }, "tax": { "@attributes": { "total": "false" }, "normalizedValue": "0.00", "recognizedValue": { "text": "0.00" } }, "payment": { "@attributes": { "type": "Card", "cardType": "AmericanExpress" }, "value": { "normalizedValue": "150.00", "recognizedValue": { "text": "150\n00" } }, "cardNumber": { "normalizedValue": "XXXXXXXXXXXX2467", "recognizedValue": { "text": "X2467" } } }, "recognizedItems": { "@attributes": { "count": "1" }, "item": { "@attributes": { "index": "1" }, "name": { "@attributes": { "confidence": "0", "isSuspicious": "true" }, "text": "Prepay CA#11" }, "count": { "@attributes": { "confidence": "19", "isSuspicious": "true" }, "normalizedValue": "1.000" }, "total": { "@attributes": { "confidence": "85", "isSuspicious": "false" }, "normalizedValue": "150.00", "recognizedValue": { "text": "150.00" } }, "recognizedText": {}, "amountUnits": "unit" } }, "country": { "@attributes": { "confidence": "100", "isSuspicious": "false" }, "normalizedValue": "USA" }, "recognizedText": {} } }'; $value = json_decode($json)->receipt->total->normalizedValue; var_dump($value);

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.10.0080.01018.11
8.5.00.0110.01119.98
8.4.160.0160.00522.09
8.4.150.0010.00114.05
8.4.140.0100.01117.64
8.4.130.0110.00818.66
8.4.120.0030.00918.84
8.4.110.0100.01018.00
8.4.100.0140.00217.56
8.4.90.0080.00120.61
8.4.80.0130.00519.07
8.4.70.0050.00318.86
8.4.60.0120.00920.39
8.4.50.0120.00918.58
8.4.40.0100.01017.43
8.4.30.0070.01318.67
8.4.20.0070.00317.70
8.4.10.0130.00722.63
8.3.280.0130.00720.77
8.3.270.0110.00816.74
8.3.260.0110.00916.43
8.3.250.0090.00716.46
8.3.240.0160.00316.44
8.3.230.0120.00916.73
8.3.220.0090.00918.94
8.3.210.0160.00416.80
8.3.200.0040.00516.53
8.3.190.0130.00617.23
8.3.180.0090.00818.61
8.3.170.0110.00716.93
8.3.160.0150.00317.31
8.3.150.0070.01118.68
8.3.140.0140.00316.52
8.3.130.0080.00018.29
8.3.120.0050.00319.10
8.3.110.0050.00320.94
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0040.00416.63
8.3.70.0150.00018.43
8.3.60.0150.00316.50
8.3.50.0070.01124.41
8.3.40.0150.00618.44
8.3.30.0140.00018.95
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0140.00516.57
8.2.280.0120.00718.52
8.2.270.0030.00616.70
8.2.260.0140.00417.01
8.2.250.0030.00716.50
8.2.240.0080.00018.83
8.2.230.0040.01122.58
8.2.220.0090.00037.54
8.2.210.0050.00326.77
8.2.200.0060.00316.75
8.2.190.0090.00618.16
8.2.180.0090.00625.92
8.2.170.0100.00322.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00620.33
8.2.110.0070.00322.25
8.2.100.0090.00317.91
8.2.90.0040.00418.16
8.2.80.0070.00020.36
8.2.70.0050.00317.90
8.2.60.0040.00417.50
8.2.50.0080.00017.63
8.2.40.0030.00621.18
8.2.30.0040.00419.28
8.2.20.0000.00717.94
8.2.10.0000.00719.32
8.2.00.0050.00319.20
8.1.330.0120.00816.25
8.1.320.0050.00418.06
8.1.310.0140.00316.45
8.1.300.0000.00916.06
8.1.290.0050.00518.88
8.1.280.0150.00625.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00423.77
8.1.230.0080.00320.89
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00517.10
8.1.180.0090.00018.10
8.1.170.0040.00418.50
8.1.160.0000.00719.06
8.1.150.0030.00518.77
8.1.140.0040.00418.83
8.1.130.0030.00320.07
8.1.120.0000.00817.41
8.1.110.0030.00317.40
8.1.100.0070.00017.30
8.1.90.0080.00317.29
8.1.80.0080.00017.31
8.1.70.0000.00717.36
8.1.60.0000.00817.55
8.1.50.0040.00417.42
8.1.40.0000.00717.47
8.1.30.0000.00817.58
8.1.20.0040.00417.48
8.1.10.0040.00417.38
8.1.00.0040.00417.46
8.0.300.0060.00320.11
8.0.290.0080.00016.75
8.0.280.0050.00318.38
8.0.270.0040.00416.75
8.0.260.0040.00420.18
8.0.250.0000.00716.77
8.0.240.0040.00416.88
8.0.230.0030.00316.77
8.0.220.0030.00316.83
8.0.210.0030.00316.85
8.0.200.0030.00316.93
8.0.190.0040.00416.84
8.0.180.0040.00416.75
8.0.170.0030.00616.84
8.0.160.0000.00716.86
8.0.150.0000.00716.78
8.0.140.0000.00716.84
8.0.130.0030.00313.24
8.0.120.0000.00816.80
8.0.110.0050.00216.77
8.0.100.0080.00016.89
8.0.90.0050.00516.72
8.0.80.0070.01216.79
8.0.70.0000.00716.86
8.0.60.0030.00516.63
8.0.50.0030.00516.68
8.0.30.0160.00416.91
8.0.20.0090.01016.87
8.0.10.0000.00717.07
8.0.00.0100.01016.82
7.4.330.0000.00515.55
7.4.320.0060.00016.59
7.4.300.0000.01016.63
7.4.290.0000.00716.58
7.4.280.0000.00816.53
7.4.270.0030.00316.56
7.4.260.0050.00313.29
7.4.250.0000.00816.48
7.4.240.0020.00616.61
7.4.230.0040.00416.46
7.4.220.0030.00416.30
7.4.210.0080.01016.54
7.4.200.0000.00716.50
7.4.130.0070.01216.46
7.4.120.0110.01116.52
7.4.110.0090.00916.55
7.4.100.0130.00316.37
7.4.90.0090.00916.50
7.4.80.0060.01219.39
7.4.70.0130.00716.39
7.4.60.0110.00516.45
7.4.50.0100.00716.21
7.4.40.0090.00916.55
7.4.30.0070.01016.37
7.4.20.0030.01516.43
7.4.10.0100.00716.30
7.4.00.0110.00716.39
7.3.330.0030.00315.99
7.3.320.0050.00313.13
7.3.310.0080.00016.07
7.3.300.0000.00616.04
7.3.290.0080.01116.16
7.3.280.0040.01216.07
7.3.260.0120.01216.52
7.3.240.0070.01116.35
7.3.230.0060.01016.23
7.3.210.0150.00316.23
7.3.200.0100.00616.15
7.3.190.0120.00416.17
7.3.180.0080.00716.52
7.3.170.0130.00316.34
7.3.160.0030.01316.26
7.3.150.0100.00716.18
7.3.140.0090.00616.10
7.3.130.0060.01016.13
7.3.120.0170.00716.25
7.3.110.0120.00416.32
7.3.100.0170.00316.48
7.3.90.0030.01316.40
7.3.80.0060.01216.06
7.3.70.0030.01316.18
7.3.60.0040.01216.41
7.3.50.0140.00316.12
7.3.40.0070.01016.12
7.3.30.0130.00716.34
7.3.20.0070.01416.28
7.3.10.0100.01016.32
7.3.00.0140.00416.29
7.2.330.0120.00616.75
7.2.320.0080.00816.34
7.2.310.0130.00516.31
7.2.300.0110.00616.57
7.2.290.0070.01116.07
7.2.280.0140.00316.55
7.2.270.0140.00316.36
7.2.260.0130.00716.41
7.2.250.0110.00616.25
7.2.240.0110.00716.54
7.2.230.0140.00316.19
7.2.220.0140.00416.48
7.2.210.0100.00716.33
7.2.200.0130.00716.35
7.2.190.0080.00816.43
7.2.180.0160.00316.61
7.2.170.0080.01216.29
7.2.160.0180.00316.64
7.2.150.0120.00916.62
7.2.140.0060.01616.39
7.2.130.0160.00616.47
7.2.120.0160.00616.54
7.2.110.0100.01016.28
7.2.100.0140.01316.40
7.2.90.0100.00916.33
7.2.80.0070.01116.51
7.2.70.0120.00516.41
7.2.60.0090.01216.57
7.2.50.0150.00616.44
7.2.40.0170.00016.48
7.2.30.0130.00816.70
7.2.20.0070.01016.64
7.2.10.0150.00316.41
7.2.00.0150.00316.40

preferences:
185.05 ms | 403 KiB | 5 Q