3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = json_decode(' { "statusCode": 200, "message": "Data Received", "0": { "id": "385", "fname": "arriet ", "lname": "ephania ", "email": "amym@mator.com", "mob": "9877" }, "1": { "id": "386", "fname": "Kelly ", "lname": "Echo ", "email": "sacen@mailinator.com", "mob": "1111" } } ', true); foreach ($arr as $key => $value) { var_dump(intval($key) === $key); if(intval($key) == $key){ //print_r($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.4.130.0150.00518.87
8.4.120.0080.00824.03
8.4.110.0090.00418.81
8.4.100.0090.01118.84
8.4.90.0060.00420.79
8.4.80.0050.00318.84
8.4.70.0140.00819.05
8.4.60.0090.01118.97
8.4.50.0060.00218.61
8.4.40.0110.00817.52
8.4.30.0070.00722.38
8.4.20.0090.00018.75
8.4.10.0030.00619.42
8.3.260.0050.00416.50
8.3.250.0100.01018.93
8.3.240.0160.00317.15
8.3.230.0160.00316.50
8.3.220.0040.00319.06
8.3.210.0100.00816.68
8.3.200.0040.00516.56
8.3.190.0100.00917.29
8.3.180.0060.00318.96
8.3.170.0070.01116.48
8.3.160.0060.00917.11
8.3.150.0080.00017.32
8.3.140.0120.00318.91
8.3.130.0070.01118.26
8.3.120.0100.01018.94
8.3.110.0030.00620.94
8.3.100.0100.00024.06
8.3.90.0080.00026.77
8.3.80.0040.00416.63
8.3.70.0140.00318.31
8.3.60.0110.00418.31
8.3.50.0160.01117.35
8.3.40.0140.00018.67
8.3.30.0120.00318.73
8.3.20.0000.00720.77
8.3.10.0130.00321.94
8.3.00.0050.00323.53
8.2.290.0120.00620.50
8.2.280.0100.00918.86
8.2.270.0070.01116.87
8.2.260.0060.00316.32
8.2.250.0040.00416.74
8.2.240.0050.00317.37
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0000.00816.25
8.2.190.0040.01118.25
8.2.180.0110.00625.92
8.2.170.0180.00418.91
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00321.11
8.2.110.0080.00020.41
8.2.100.0000.01117.72
8.2.90.0060.00320.59
8.2.80.0080.00019.54
8.2.70.0080.00017.93
8.2.60.0040.00418.00
8.2.50.0040.00418.10
8.2.40.0000.00719.33
8.2.30.0040.00419.31
8.2.20.0070.00318.13
8.2.10.0000.00719.14
8.2.00.0000.00719.12
8.1.330.0130.00516.07
8.1.320.0080.00215.87
8.1.310.0080.00015.91
8.1.300.0080.00019.98
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0130.00623.84
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0030.00623.73
8.1.230.0090.00317.48
8.1.220.0000.00917.74
8.1.210.0040.00418.89
8.1.200.0080.00017.23
8.1.190.0060.00317.23
8.1.180.0070.00018.10
8.1.170.0000.00818.49
8.1.160.0060.00318.86
8.1.150.0050.00218.89
8.1.140.0040.00418.82
8.1.130.0070.00020.20
8.1.120.0000.00717.39
8.1.110.0050.00317.31
8.1.100.0040.00417.45
8.1.90.0050.00217.50
8.1.80.0000.00817.38
8.1.70.0040.00417.38
8.1.60.0080.00017.57
8.1.50.0000.00917.46
8.1.40.0030.00917.53
8.1.30.0000.00817.68
8.1.20.0110.00017.65
8.1.10.0040.00417.38
8.1.00.0040.00417.40
8.0.300.0000.00719.94
8.0.290.0070.00016.63
8.0.280.0030.00318.43
8.0.270.0040.00417.26
8.0.260.0030.00318.44
8.0.250.0000.00717.04
8.0.240.0030.00316.95
8.0.230.0000.00717.01
8.0.220.0030.00316.88
8.0.210.0050.00316.96
8.0.200.0000.00916.95
8.0.190.0000.00716.84
8.0.180.0030.00316.90
8.0.170.0130.00016.80
8.0.160.0040.00416.86
8.0.150.0070.00016.90
8.0.140.0040.00416.76
8.0.130.0030.00313.30
8.0.120.0000.00816.87
8.0.110.0000.00816.84
8.0.100.0070.00016.95
8.0.90.0030.00516.79
8.0.80.0120.00916.86
8.0.70.0070.00016.85
8.0.60.0040.00416.93
8.0.50.0000.00716.74
8.0.30.0130.00517.06
8.0.20.0120.01516.99
8.0.10.0030.00517.01
8.0.00.0110.00716.67
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0040.00416.49
7.4.290.0030.00516.44
7.4.280.0070.00416.59
7.4.270.0040.00416.57
7.4.260.0000.00716.41
7.4.250.0070.00016.55
7.4.240.0040.00316.53
7.4.230.0000.00716.70
7.4.220.0030.00316.50
7.4.210.0080.00816.54
7.4.200.0030.00316.40
7.4.130.0120.00616.46
7.4.120.0110.00716.66
7.4.110.0030.02016.39
7.4.100.0070.01016.55
7.4.90.0090.01216.50
7.4.80.0100.00719.39
7.4.70.0030.01316.44
7.4.60.0100.00716.65
7.4.50.0100.00616.68
7.4.40.0080.00916.39
7.4.00.0070.01015.04
7.3.330.0000.00613.32
7.3.320.0030.00313.06
7.3.310.0030.00316.18
7.3.300.0040.00416.23
7.3.290.0040.00416.36
7.3.280.0110.00516.34
7.3.260.0090.00916.50
7.3.240.0130.00616.46
7.3.230.0330.02216.40
7.3.210.0160.01016.71
7.3.200.0070.01416.35
7.3.190.0030.01316.25
7.3.180.0030.01316.59
7.3.170.0000.01616.44
7.3.160.0080.01216.65
7.3.120.0100.00714.90
7.3.110.0030.01214.69
7.3.100.0100.00414.78
7.3.90.0020.00914.78
7.3.80.0040.01114.98
7.3.70.0080.00814.74
7.3.60.0070.00814.72
7.3.50.0070.00514.82
7.3.40.0080.00614.79
7.3.30.0090.00714.71
7.3.20.0080.00916.55
7.3.10.0070.00816.69
7.3.00.0050.00616.63
7.2.330.0110.00616.71
7.2.320.0100.00716.44
7.2.310.0070.01016.73
7.2.300.0120.00616.47
7.2.290.0100.00616.44
7.2.250.0070.01315.27
7.2.240.0090.01114.96
7.2.230.0060.01014.90
7.2.220.0080.00414.77
7.2.210.0080.00715.03
7.2.200.0060.00714.98
7.2.190.0040.01114.98
7.2.180.0030.00914.78
7.2.170.0080.00814.97
7.2.160.0090.00915.04
7.2.150.0040.01016.86
7.2.140.0060.00916.79
7.2.130.0070.00716.95
7.2.120.0100.00416.87
7.2.110.0070.01316.81
7.2.100.0040.01116.97
7.2.90.0080.00816.98
7.2.80.0080.00916.78
7.2.70.0060.00816.90
7.2.60.0090.00616.97
7.2.50.0050.01216.86
7.2.40.0090.00617.00
7.2.30.0080.00816.82
7.2.20.0050.00716.80
7.2.10.0040.00816.83
7.2.00.0090.01016.88
7.1.330.0080.00515.82
7.1.320.0080.00815.77
7.1.310.0060.00815.79
7.1.300.0040.00915.78
7.1.290.0050.00815.83
7.1.280.0080.00615.71
7.1.270.0050.01015.70
7.1.260.0070.00815.72
7.1.250.0030.00715.57

preferences:
29.89 ms | 406 KiB | 6 Q