3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"2":1}'; $obj = json_decode($json); $arr = get_object_vars($obj); $key = array_key_exists('2', $arr); var_dump($key, $arr);

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.0150.00616.75
8.3.50.0100.01016.36
8.3.40.0180.00018.73
8.3.30.0040.01118.63
8.3.20.0070.00020.21
8.3.10.0070.00021.68
8.3.00.0080.00017.21
8.2.180.0110.00418.41
8.2.170.0100.00622.96
8.2.160.0040.01119.32
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0030.00620.53
8.2.120.0030.00526.35
8.2.110.0050.00519.39
8.2.100.0110.00018.16
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0040.00421.91
8.2.30.0000.00719.23
8.2.20.0000.00717.92
8.2.10.0050.00218.29
8.2.00.0070.00018.23
8.1.280.0110.00425.92
8.1.270.0080.00023.97
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00619.19
8.1.230.0050.00519.07
8.1.220.0070.00017.78
8.1.210.0080.00018.77
8.1.200.0120.00017.23
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0040.00418.53
8.1.160.0040.00418.68
8.1.150.0040.00419.93
8.1.140.0040.00419.41
8.1.130.0000.00819.01
8.1.120.0040.00717.29
8.1.110.0030.00517.36
8.1.100.0040.00417.33
8.1.90.0030.00517.31
8.1.80.0060.00317.35
8.1.70.0070.00017.38
8.1.60.0000.00917.50
8.1.50.0040.00417.45
8.1.40.0050.00517.50
8.1.30.0000.00817.45
8.1.20.0000.00817.50
8.1.10.0040.00417.39
8.1.00.0080.00017.43
8.0.300.0080.00018.77
8.0.290.0070.00016.58
8.0.280.0030.00318.39
8.0.270.0000.00817.22
8.0.260.0040.00418.88
8.0.250.0000.00716.84
8.0.240.0000.00716.81
8.0.230.0000.00816.87
8.0.220.0000.00716.75
8.0.210.0000.00716.68
8.0.200.0030.00316.83
8.0.190.0000.00816.91
8.0.180.0000.00816.84
8.0.170.0100.00016.91
8.0.160.0030.00316.72
8.0.150.0030.00616.79
8.0.140.0050.00316.68
8.0.130.0000.00513.27
8.0.120.0040.00416.74
8.0.110.0000.00816.90
8.0.100.0040.00416.70
8.0.90.0000.00816.75
8.0.80.0130.00616.73
8.0.70.0000.00716.84
8.0.60.0050.00216.86
8.0.50.0000.00716.80
8.0.30.0100.00717.02
8.0.20.0080.01217.40
8.0.10.0040.00416.89
8.0.00.0090.00916.76
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0000.00716.62
7.4.290.0000.00716.63
7.4.280.0000.00716.57
7.4.270.0030.00616.50
7.4.260.0000.00716.51
7.4.250.0050.00216.52
7.4.240.0030.00316.49
7.4.230.0030.00316.41
7.4.220.0090.01216.59
7.4.210.0090.00916.53
7.4.200.0000.00716.68
7.4.160.0090.00716.46
7.4.150.0040.01517.40
7.4.140.0060.01417.86
7.4.130.0110.01116.46
7.4.120.0110.01216.53
7.4.110.0130.01116.60
7.4.100.0150.00616.51
7.4.90.0000.01716.39
7.4.80.0100.00619.39
7.4.70.0070.01316.38
7.4.60.0100.00716.43
7.4.50.0040.01216.36
7.4.40.0040.01216.44
7.4.30.0040.01116.38
7.4.00.0100.00714.96
7.3.330.0030.00312.90
7.3.320.0000.00513.12
7.3.310.0000.00716.18
7.3.300.0080.00016.23
7.3.290.0000.00716.03
7.3.280.0090.00716.15
7.3.270.0090.00917.40
7.3.260.0130.00816.26
7.3.240.0120.00916.29
7.3.230.0120.00416.43
7.3.210.0140.00716.13
7.3.200.0120.00316.35
7.3.190.0060.01516.07
7.3.180.0060.01616.09
7.3.170.0030.01316.11
7.3.160.0060.00916.45
7.3.10.0030.00916.51
7.3.00.0090.00316.27
7.2.330.0080.00816.43
7.2.320.0100.01316.63
7.2.310.0030.01316.38
7.2.300.0130.01016.30
7.2.290.0120.00616.61
7.2.130.0030.00916.80
7.2.120.0030.00616.48
7.2.110.0040.01116.53
7.2.100.0060.00916.81
7.2.90.0040.00416.88
7.2.80.0090.00616.71
7.2.70.0090.00316.85
7.2.60.0040.00916.77
7.2.50.0150.00316.67
7.2.40.0000.01016.79
7.2.30.0140.00316.89
7.2.20.0030.00616.72
7.2.10.0040.01116.81
7.2.00.0030.00918.08
7.1.250.0060.00615.36
7.1.200.0110.00315.78
7.1.70.0070.00317.14
7.1.60.0130.00717.13
7.1.50.0070.01116.89
7.1.40.0230.01732.41
7.1.30.0300.01032.61
7.1.20.0270.01332.59
7.1.10.0300.00714.74
7.1.00.0200.00314.44
7.0.200.0030.01116.57
7.0.180.0170.01014.41
7.0.170.0230.00714.18
7.0.160.0300.00314.19
7.0.150.0200.01014.23
7.0.140.0170.01014.25
7.0.130.0130.01314.19
7.0.120.0200.00714.61
7.0.110.0200.00714.23
7.0.100.0200.00714.18
7.0.90.0200.00714.29
7.0.80.0300.00014.46
7.0.70.0200.00714.22
7.0.60.0230.00313.90
7.0.50.0130.01014.26
7.0.40.0200.01014.51
7.0.30.0200.00714.46
7.0.20.0230.01314.57
7.0.10.0200.00714.36
7.0.00.0200.00714.44

preferences:
59.43 ms | 400 KiB | 5 Q