3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = array("art", "emotion"); $serialized = serialize($tags); $deserialized = unserialize($serialized); echo $serialized. "\n"; echo $deserialized[0]. "\n"; $json = '{ "success": { "total": 1 }, "contents": { "quotes": [ { "quote": "The artist is a receptacle for the emotions that come from all over the place: from the sky, from the earth, from a scrap of paper, from a passing shape, from a spiders web.", "length": "174", "author": "Pablo Picasso", "tags": [ "art", "artist", "emotion" ], "category": "art", "date": "2017-04-12", "permalink": "https://theysaidso.com/quote/MO7LGV07dZujWjUR2_WCXQeF/pablo-picasso-the-artist-is-a-receptacle-for-the-emotions-that-come-from-all-ove", "title": "Art quote of the day ", "background": "https://theysaidso.com/img/qod/fractal_arabesque_loops.jpg", "id": "MO7LGV07dZujWjUR2_WCXQeF" } ], "copyright": "2017-19 theysaidso.com" } }'; //echo $json."\n"; $jsonObject = json_decode($json); echo var_dump($jsonObject->{"success"}); echo "-----------------------------------";

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.0040.01218.40
8.3.50.0080.00817.91
8.3.40.0110.00418.55
8.3.30.0070.00718.75
8.3.20.0000.00820.29
8.3.10.0050.00321.75
8.3.00.0040.00423.65
8.2.180.0100.00718.19
8.2.170.0070.00722.96
8.2.160.0070.00719.50
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00420.43
8.2.120.0080.00026.35
8.2.110.0100.00021.07
8.2.100.0090.00318.22
8.2.90.0080.00019.17
8.2.80.0040.00418.04
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00918.10
8.2.40.0000.00822.29
8.2.30.0070.00019.30
8.2.20.0000.00718.13
8.2.10.0000.00718.32
8.2.00.0040.00418.27
8.1.280.0070.00725.92
8.1.270.0040.00420.70
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0150.00623.97
8.1.230.0090.00317.57
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0100.00017.25
8.1.190.0050.00317.23
8.1.180.0090.00018.10
8.1.170.0080.00022.03
8.1.160.0040.00418.94
8.1.150.0050.00221.93
8.1.140.0040.00419.49
8.1.130.0070.00019.10
8.1.120.0040.00417.46
8.1.110.0080.00017.46
8.1.100.0040.00417.37
8.1.90.0040.00417.40
8.1.80.0050.00317.50
8.1.70.0030.00317.48
8.1.60.0070.00017.56
8.1.50.0040.00417.51
8.1.40.0080.00017.56
8.1.30.0040.00417.55
8.1.20.0050.00317.53
8.1.10.0040.00417.59
8.1.00.0050.00317.51
8.0.300.0050.00318.77
8.0.290.0050.00316.88
8.0.280.0000.00718.52
8.0.270.0000.00817.23
8.0.260.0000.00818.47
8.0.250.0000.00717.03
8.0.240.0040.00417.00
8.0.230.0030.00317.06
8.0.220.0030.00616.86
8.0.210.0030.00316.87
8.0.200.0030.00317.06
8.0.190.0000.00717.00
8.0.180.0080.00016.87
8.0.170.0000.00716.90
8.0.160.0080.00016.96
8.0.150.0000.00716.81
8.0.140.0030.00316.88
8.0.130.0030.00313.45
8.0.120.0000.00816.96
8.0.110.0030.00516.84
8.0.100.0040.00416.84
8.0.90.0030.00416.91
8.0.80.0070.01116.96
8.0.70.0020.00517.00
8.0.60.0070.00016.99
8.0.50.0040.00417.03
8.0.30.0100.01117.01
8.0.20.0140.00517.40
8.0.10.0030.00316.98
8.0.00.0090.00816.76
7.4.330.0020.00215.55
7.4.320.0040.00416.52
7.4.300.0000.00716.45
7.4.290.0030.00316.53
7.4.280.0000.00816.45
7.4.270.0090.00016.47
7.4.260.0030.00316.43
7.4.250.0000.00716.44
7.4.240.0030.00316.38
7.4.230.0030.00316.46
7.4.220.0080.00916.38
7.4.210.0160.00316.53
7.4.200.0000.00716.65
7.4.160.0040.01216.69
7.4.150.0070.01117.40
7.4.140.0110.00917.86
7.4.130.0100.00816.58
7.4.120.0100.01016.52
7.4.110.0070.01016.43
7.4.100.0090.00916.54
7.4.90.0110.00716.30
7.4.80.0080.01119.39
7.4.70.0120.00416.42
7.4.60.0060.00916.51
7.4.50.0030.01216.38
7.4.40.0030.01716.51
7.4.30.0090.00916.61
7.4.00.0030.00715.07
7.3.330.0000.00513.20
7.3.320.0000.00513.25
7.3.310.0070.00016.40
7.3.300.0070.00016.38
7.3.290.0050.00916.29
7.3.280.0080.01016.26
7.3.270.0110.00517.40
7.3.260.0140.00816.41
7.3.250.0100.01116.37
7.3.240.0100.00716.45
7.3.230.0100.00716.53
7.3.210.0080.00816.55
7.3.200.0050.01616.55
7.3.190.0000.01616.59
7.3.180.0130.00316.57
7.3.170.0080.00816.65
7.3.160.0080.00816.50
7.2.330.0000.01716.77
7.2.320.0070.01016.73
7.2.310.0060.01316.67
7.2.300.0080.00816.80
7.2.290.0080.01316.62
7.2.110.0110.00416.57
7.2.60.0190.01016.56
7.2.00.0040.01119.08
7.1.200.0000.01316.00
7.1.70.0040.00417.19
7.1.60.0030.01016.99
7.1.50.0280.00934.98
7.1.40.1170.08738.32
7.1.30.0970.01332.44
7.1.20.1230.01032.54
7.1.10.1100.01714.63
7.1.00.1200.01314.74
7.0.200.0090.01216.52
7.0.170.0930.01014.24
7.0.160.1170.01014.25
7.0.150.1130.01314.23
7.0.140.1000.01014.54
7.0.130.1630.01014.41
7.0.120.1200.01314.61
7.0.110.2430.02014.47
7.0.100.1330.01014.37
7.0.90.1330.00714.35
7.0.80.1030.01314.24
7.0.70.0730.01314.36
7.0.60.0800.00714.33
7.0.50.1070.00714.58
7.0.40.0870.01314.61
7.0.30.1270.01014.60
7.0.20.1270.01714.55
7.0.10.1630.01014.65
7.0.00.1370.01014.29

preferences:
67.18 ms | 401 KiB | 5 Q