3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_str = <<<TEXT { "Example": { "ExampleOne": { "rate": "0" }, "ExampleTwo": { "rate": "0" }, "ExampleThree": { "rate": "0" } } } TEXT; $json = json_decode($json_str, true); $keys = array_keys($json['Example']); print_r($keys);

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.40.0080.00819.27
8.3.30.0070.00718.65
8.3.20.0000.00821.60
8.3.10.0000.00821.92
8.3.00.0040.00423.70
8.2.170.0070.01022.96
8.2.160.0090.00621.14
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00919.76
8.2.110.0030.00622.16
8.2.100.0040.00717.68
8.2.90.0000.00819.25
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0050.00317.92
8.2.50.0060.00318.10
8.2.40.0000.00720.65
8.2.30.0050.00217.92
8.2.20.0000.00717.92
8.2.10.0000.00719.52
8.2.00.0040.00419.11
8.1.270.0060.00322.07
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.98
8.1.230.0100.00022.14
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0080.00017.10
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00918.51
8.1.160.0000.00818.92
8.1.150.0000.00718.78
8.1.140.0040.00418.86
8.1.130.0000.00720.13
8.1.120.0030.00317.28
8.1.110.0000.00717.36
8.1.100.0030.00517.40
8.1.90.0000.00717.36
8.1.80.0000.00817.32
8.1.70.0070.00017.41
8.1.60.0030.00617.54
8.1.50.0040.00417.44
8.1.40.0000.00817.34
8.1.30.0000.00817.47
8.1.20.0080.00017.50
8.1.10.0040.00417.46
8.1.00.0000.00817.43
8.0.300.0060.00318.77
8.0.290.0050.00216.75
8.0.280.0030.00318.42
8.0.270.0030.00317.91
8.0.260.0040.00418.37
8.0.250.0040.00416.95
8.0.240.0050.00316.84
8.0.230.0040.00416.90
8.0.220.0070.00016.87
8.0.210.0080.00016.90
8.0.200.0070.00016.89
8.0.190.0030.00516.95
8.0.180.0080.00016.79
8.0.170.0030.00616.90
8.0.160.0000.00816.92
8.0.150.0040.00416.87
8.0.140.0050.00516.83
8.0.130.0000.00513.39
8.0.120.0000.00716.78
8.0.110.0030.00316.84
8.0.100.0040.00416.85
8.0.90.0030.00616.85
8.0.80.0090.00916.80
8.0.70.0050.00316.92
8.0.60.0050.00216.87
8.0.50.0000.00716.91
8.0.30.0110.00617.07
8.0.20.0130.00517.08
8.0.10.0070.00016.97
8.0.00.0130.01316.83
7.4.330.0000.00515.55
7.4.320.0030.00316.33
7.4.300.0030.00316.54
7.4.290.0030.00516.59
7.4.280.0040.00416.38
7.4.270.0030.00316.36
7.4.260.0000.00513.21
7.4.250.0030.00316.49
7.4.240.0050.00216.41
7.4.230.0040.00416.34
7.4.220.0020.00516.44
7.4.210.0070.00816.48
7.4.200.0000.00816.60
7.4.130.0100.01016.42
7.4.120.0160.00616.43
7.4.110.0100.00616.47
7.4.100.0060.01016.33
7.4.90.0230.02816.42
7.4.80.0060.01019.39
7.4.70.0110.00616.45
7.4.60.0040.01216.41
7.4.50.0120.00316.16
7.4.40.0100.00616.50
7.4.30.0100.00616.23
7.4.20.0100.00716.38
7.4.10.0060.00916.36
7.4.00.0060.00916.28
7.3.330.0070.00016.02
7.3.320.0020.00213.24
7.3.310.0040.00416.19
7.3.300.0030.00316.16
7.3.290.0060.01216.26
7.3.260.0160.00616.13
7.3.240.0060.01216.35
7.3.230.0120.01216.20
7.3.210.0070.01016.37
7.3.200.0060.00916.29
7.3.190.0030.01316.16
7.3.180.0110.00716.44
7.3.170.0180.00316.31
7.3.160.0190.00316.29
7.3.150.0060.01016.33
7.3.140.0070.01116.27
7.3.130.0110.01116.32
7.3.120.0090.01216.46
7.3.110.0120.00316.28
7.3.100.0090.00616.14
7.3.90.0070.01016.40
7.3.80.0130.00616.22
7.3.70.0100.00616.28
7.3.60.0030.01316.28
7.3.50.0070.01416.19
7.3.40.0000.01816.23
7.3.30.0120.00916.12
7.3.20.0110.00716.30
7.3.10.0130.01016.27
7.3.00.0070.01016.21
7.2.330.0140.00316.67
7.2.320.0080.01516.45
7.2.310.0040.01416.64
7.2.300.0080.00816.27
7.2.290.0060.01816.38
7.2.280.0030.01316.64
7.2.270.0060.01416.48
7.2.260.0040.01316.64
7.2.250.0110.01116.43
7.2.240.0100.00716.49
7.2.230.0130.00316.64
7.2.220.0140.00316.45
7.2.210.0150.00616.58
7.2.200.0100.00716.29
7.2.190.0110.01116.51
7.2.180.0090.00916.50
7.2.170.0080.01216.43
7.2.160.0140.00616.59
7.2.150.0110.01116.50
7.2.140.0030.01516.47
7.2.130.0090.00916.49
7.2.120.0100.02016.37
7.2.110.0070.01016.41
7.2.100.0130.01016.45
7.2.90.0160.00316.39
7.2.80.0060.01116.48
7.2.70.0120.01216.30
7.2.60.0200.00316.54
7.2.50.0160.00716.36
7.2.40.0150.00316.32
7.2.30.0090.00916.34
7.2.20.0070.01016.59
7.2.10.0140.00616.47
7.2.00.0070.01016.45

preferences:
53.84 ms | 400 KiB | 5 Q