3v4l.org

run code in 300+ PHP versions simultaneously
<?php $small_num = '9999'; $large_num = '9999999999999999999999999999999'; $arr = (array)json_decode("{\"$small_num\":\"1\",\"$large_num\":\"1\"}"); var_dump($arr); var_dump(array( 'isset_small_num_key' => isset($arr[$small_num]), 'isset_large_num_key' => isset($arr[$large_num]), ));

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.00818.58
8.3.30.0070.01118.70
8.3.20.0070.00020.18
8.3.10.0040.00423.66
8.3.00.0040.00422.52
8.2.170.0110.00422.96
8.2.160.0070.00720.43
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0060.00320.36
8.2.100.0060.00617.75
8.2.90.0040.00419.26
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0080.00018.16
8.2.50.0030.00518.07
8.2.40.0080.00020.95
8.2.30.0040.00419.82
8.2.20.0070.00017.81
8.2.10.0040.00418.18
8.2.00.0000.00718.04
8.1.270.0060.00320.20
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0080.00317.48
8.1.220.0120.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0040.00417.13
8.1.180.0030.00518.10
8.1.170.0000.00818.45
8.1.160.0030.00623.70
8.1.150.0000.00818.75
8.1.140.0000.00817.31
8.1.130.0030.00317.56
8.1.120.0070.00017.36
8.1.110.0040.00417.40
8.1.100.0040.00417.30
8.1.90.0000.00817.36
8.1.80.0040.00417.38
8.1.70.0070.00017.52
8.1.60.0040.00417.54
8.1.50.0000.00817.54
8.1.40.0000.00717.48
8.1.30.0000.00817.68
8.1.20.0000.00817.66
8.1.10.0040.00417.49
8.1.00.0000.00717.56
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0070.00018.46
8.0.270.0030.00317.32
8.0.260.0000.00617.26
8.0.250.0000.00716.93
8.0.240.0040.00416.91
8.0.230.0000.00716.92
8.0.220.0070.00016.84
8.0.210.0030.00516.85
8.0.200.0030.00316.93
8.0.190.0050.00316.86
8.0.180.0040.00416.80
8.0.170.0000.00816.89
8.0.160.0000.00716.88
8.0.150.0000.00716.81
8.0.140.0000.01116.75
8.0.130.0060.00013.26
8.0.120.0000.00916.77
8.0.110.0040.00416.93
8.0.100.0040.00416.79
8.0.90.0000.00717.01
8.0.80.0040.01216.94
8.0.70.0000.00716.73
8.0.60.0000.00716.94
8.0.50.0040.00416.93
8.0.30.0080.01017.13
8.0.20.0100.01017.40
8.0.10.0040.00416.84
8.0.00.0100.00716.85
7.4.330.0040.00415.08
7.4.320.0060.00016.59
7.4.300.0000.00616.60
7.4.290.0070.00016.41
7.4.280.0000.00716.61
7.4.270.0070.00016.60
7.4.260.0070.00016.63
7.4.250.0050.00316.59
7.4.240.0020.00616.57
7.4.230.0000.00716.61
7.4.220.0090.00916.54
7.4.210.0100.00716.61
7.4.200.0070.00016.58
7.4.160.0070.01016.39
7.4.150.0120.00817.40
7.4.140.0100.01117.86
7.4.130.0110.00616.56
7.4.120.0050.01316.57
7.4.110.0100.00616.48
7.4.100.0100.00716.62
7.4.90.0060.01216.52
7.4.80.0090.00919.39
7.4.70.0070.00916.55
7.4.60.0170.00316.57
7.4.50.0000.00816.52
7.4.40.0070.01016.50
7.4.30.0170.00616.32
7.4.00.0060.00915.07
7.3.330.0060.00013.23
7.3.320.0030.00313.31
7.3.310.0030.00316.42
7.3.300.0000.00716.34
7.3.290.0100.00416.33
7.3.280.0070.00916.38
7.3.270.0110.00517.40
7.3.260.0140.00316.41
7.3.250.0100.00616.29
7.3.240.0120.00616.29
7.3.230.0090.01216.39
7.3.210.0180.00016.44
7.3.200.0160.00619.39
7.3.190.0030.01216.59
7.3.180.0040.01216.31
7.3.170.0060.01116.27
7.3.160.0090.00916.53
7.2.330.0090.00916.38
7.2.320.0090.01216.50
7.2.310.0030.01316.61
7.2.300.0110.00516.22
7.2.290.0030.01416.59
7.2.60.0030.01016.68
7.2.00.0040.00819.43
7.1.200.0060.00615.80
7.1.100.0040.00818.16
7.1.70.0050.00317.04
7.1.60.0000.02220.03
7.1.50.0090.00617.03
7.1.00.0030.07722.36
7.0.200.0090.00614.98
7.0.60.0070.06319.96
7.0.50.0100.08017.69
7.0.40.0130.03320.30
7.0.30.0270.06720.18
7.0.20.0370.06720.18
7.0.10.0070.08720.16
7.0.00.0230.07020.20
5.6.210.0100.07320.64
5.6.200.0170.07318.16
5.6.190.0130.07720.61
5.6.180.0200.03720.57
5.6.170.0200.04320.50
5.6.160.0100.06020.70
5.6.150.0030.08718.12
5.6.140.0100.08018.18
5.6.130.0130.08718.20
5.6.120.0070.05321.01
5.6.110.0100.08021.00
5.6.100.0070.08720.96
5.6.90.0100.08720.87
5.6.80.0030.04720.53
5.6.70.4300.04020.34
5.5.350.0230.07720.32
5.5.340.0130.07317.91
5.5.330.0070.04020.36
5.5.320.0400.04320.31
5.5.310.0230.04320.45
5.5.300.0100.07717.91
5.5.290.0100.03317.89
5.5.280.0170.07020.85
5.5.270.0000.04720.79
5.5.260.0070.09020.96
5.5.250.0070.08320.68
5.5.240.0270.07020.11
5.4.450.0830.06319.42
5.4.440.0930.06319.61
5.4.430.0830.05019.48
5.4.420.0870.04319.42
5.4.410.0700.05718.96
5.4.400.0670.05318.78
5.4.390.0700.05319.29
5.4.380.0600.05319.24
5.4.370.0530.06019.09
5.4.360.0670.05719.19
5.4.350.0600.06018.95
5.4.340.0670.04719.25
5.4.320.0600.05719.09
5.4.310.0600.05319.20
5.4.300.0570.06018.87
5.4.290.0700.04719.06
5.4.280.0400.08318.98
5.4.270.0170.06318.88
5.4.260.0130.05019.09
5.4.250.0030.06019.09
5.4.240.0700.05318.88
5.4.230.0630.05719.07
5.4.220.0800.04318.77
5.4.210.0870.05719.04
5.4.200.0700.06016.59
5.4.190.0670.04718.77
5.4.180.0670.04318.91
5.4.170.0570.06018.85
5.4.160.0570.06018.72
5.4.150.0670.05018.89
5.4.140.0600.05716.18
5.4.130.0600.05016.33
5.4.120.0600.05016.44
5.4.110.0700.04716.30
5.4.100.0670.04316.39
5.4.90.0630.05016.43
5.4.80.0700.04716.11
5.4.70.0670.06016.23
5.4.60.0070.05316.18
5.4.50.0030.07016.43
5.4.40.0100.04316.36
5.4.30.0270.03016.36
5.4.20.0230.03716.20

preferences:
44.27 ms | 400 KiB | 5 Q