3v4l.org

run code in 300+ PHP versions simultaneously
<?php $information = array("login" => "someUsername", "password" => "somePassword", "card_pin"=>"card_1234", "pin"=>"pin_356", "iin" => "iin_123", "shipping" => array("telephone" => "telephone_998"), "cardnumber" => "card_number_876", "customer_id" => "customer_654", "telephone" => "someOtherTelephoneNumber555"); $json = JSON.stringify($information); $jsonIterator = new RecursiveIteratorIterator( new RecursiveArrayIterator(json_decode($json, TRUE)), RecursiveIteratorIterator::SELF_FIRST); foreach ($jsonIterator as $key => $val) { if(is_array($val)) { echo "$key:\n"; } else { echo "$key => $val\n"; } }

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.0070.00716.75
8.3.50.0110.00418.18
8.3.40.0060.01318.76
8.3.30.0030.01018.71
8.3.20.0050.00220.16
8.3.10.0040.00423.60
8.3.00.0050.00319.38
8.2.180.0150.00016.46
8.2.170.0100.00322.96
8.2.160.0070.00722.09
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0100.00317.50
8.2.120.0070.00026.35
8.2.110.0030.00620.97
8.2.100.0040.00818.04
8.2.90.0060.00319.21
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00717.80
8.2.50.0000.00818.07
8.2.40.0050.00219.36
8.2.30.0000.00720.71
8.2.20.0060.00317.66
8.2.10.0040.00418.04
8.2.00.0000.00718.11
8.1.280.0120.00925.92
8.1.270.0040.00421.78
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00023.93
8.1.230.0070.00422.69
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0040.00417.00
8.1.190.0030.00617.23
8.1.180.0000.00918.10
8.1.170.0000.00718.63
8.1.160.0070.00021.93
8.1.150.0040.00418.78
8.1.140.0000.00919.50
8.1.130.0050.00217.75
8.1.120.0040.00417.48
8.1.110.0030.00717.46
8.1.100.0040.00417.48
8.1.90.0040.00417.50
8.1.80.0040.00417.34
8.1.70.0070.00017.36
8.1.60.0050.00517.55
8.1.50.0000.00817.61
8.1.40.0040.00417.52
8.1.30.0040.00417.70
8.1.20.0000.00717.54
8.1.10.0030.00617.46
8.1.00.0040.00417.41
8.0.300.0030.00618.77
8.0.290.0080.00016.88
8.0.280.0000.00718.37
8.0.270.0000.00717.21
8.0.260.0000.00617.23
8.0.250.0000.00717.07
8.0.240.0000.00717.07
8.0.230.0080.00017.01
8.0.220.0000.00716.94
8.0.210.0060.00316.97
8.0.200.0060.00317.12
8.0.190.0060.00316.99
8.0.180.0070.00016.99
8.0.170.0050.00316.86
8.0.160.0040.00417.00
8.0.150.0000.00716.80
8.0.140.0030.00616.91
8.0.130.0030.00313.44
8.0.120.0000.00816.91
8.0.110.0050.00316.98
8.0.100.0070.00017.02
8.0.90.0000.00716.92
8.0.80.0030.01317.00
8.0.70.0040.00416.78
8.0.60.0000.00716.91
8.0.50.0000.00716.84
8.0.30.0130.00617.09
8.0.20.0090.01217.40
8.0.10.0040.00416.90
8.0.00.0100.00716.68
7.4.330.0000.00515.08
7.4.320.0000.00616.50
7.4.300.0000.00616.51
7.4.290.0000.00716.60
7.4.280.0050.00316.44
7.4.270.0030.00316.41
7.4.260.0000.00816.43
7.4.250.0040.00416.53
7.4.240.0050.00216.60
7.4.230.0000.00816.68
7.4.220.0110.00716.42
7.4.210.0100.01016.52
7.4.200.0000.00716.68
7.4.160.0130.00316.61
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0040.01516.72
7.4.120.0120.01116.49
7.4.110.0090.00916.64
7.4.100.0130.00316.73
7.4.90.0140.00516.48
7.4.80.0070.01019.39
7.4.70.0060.01216.53
7.4.60.0030.01416.36
7.4.50.0070.00716.53
7.4.40.0110.00716.51
7.4.30.0070.01316.58
7.4.10.0070.01415.07
7.4.00.0050.01215.00
7.3.330.0050.00313.09
7.3.320.0030.00313.00
7.3.310.0030.00316.34
7.3.300.0000.00616.18
7.3.290.0070.00716.25
7.3.280.0110.00516.26
7.3.270.0030.01317.40
7.3.260.0090.01516.55
7.3.240.0120.00716.48
7.3.230.0030.01316.45
7.3.210.0080.00816.20
7.3.200.0170.00016.39
7.3.190.0060.01216.59
7.3.180.0000.01516.30
7.3.170.0040.01216.37
7.3.160.0110.00316.32
7.3.130.0130.00614.59
7.3.120.0080.00914.90
7.3.110.0060.01014.88
7.3.100.0110.00514.90
7.3.90.0050.01014.75
7.3.80.0050.00914.76
7.3.70.0020.01214.77
7.3.60.0030.01014.74
7.3.50.0060.00514.79
7.3.40.0040.00614.86
7.3.30.0040.00714.83
7.3.20.0030.00916.55
7.3.10.0030.00916.55
7.3.00.0080.00616.53
7.2.330.0110.00916.61
7.2.320.0090.01216.29
7.2.310.0060.01016.72
7.2.300.0030.01516.46
7.2.290.0130.01016.67
7.2.260.0090.00915.13
7.2.250.0060.00615.11
7.2.240.0040.01114.75
7.2.230.0060.00814.83
7.2.220.0100.00615.00
7.2.210.0060.01114.73
7.2.200.0050.00915.05
7.2.190.0070.00814.76
7.2.180.0060.00814.86
7.2.170.0060.01014.94
7.2.160.0050.01015.02
7.2.150.0050.00816.76
7.2.140.0020.01216.61
7.2.130.0060.00816.87
7.2.120.0120.00316.77
7.2.110.0030.00916.74
7.2.100.0050.01216.75
7.2.90.0080.00916.81
7.2.80.0100.00616.72
7.2.70.0070.00816.88
7.2.60.0120.00316.74
7.2.50.0080.00616.76
7.2.40.0070.01016.64
7.2.30.0070.01016.86
7.2.20.0080.00716.74
7.2.10.0050.01016.79
7.2.00.0030.01217.51
7.1.330.0030.00915.62
7.1.320.0070.00715.83
7.1.310.0070.00715.70
7.1.300.0060.00815.62
7.1.290.0090.00415.72
7.1.280.0050.00915.58
7.1.270.0100.00515.70
7.1.260.0080.00415.77
7.1.250.0050.01015.70
7.1.240.0060.00815.54
7.1.230.0090.00515.65
7.1.220.0090.00715.48
7.1.210.0100.00315.58
7.1.200.0080.00715.46
7.1.190.0090.00715.53
7.1.180.0120.00515.65
7.1.170.0080.00515.66
7.1.160.0130.00315.58
7.1.150.0050.01115.41
7.1.140.0060.00915.54
7.1.130.0060.00915.62
7.1.120.0100.00515.55
7.1.110.0120.00315.84
7.1.100.0100.00416.46
7.1.90.0080.00815.80
7.1.80.0060.00815.54
7.1.70.0070.00616.24
7.1.60.0100.01016.96
7.1.50.0070.00915.96
7.1.40.0080.00415.79
7.1.30.0110.00415.71
7.1.20.0040.00915.53
7.1.10.0090.00415.64
7.1.00.0050.03017.88
7.0.330.0080.00615.09
7.0.320.0040.01015.30
7.0.310.0080.00415.37
7.0.300.0100.00615.34
7.0.290.0090.00415.29
7.0.280.0120.00215.39
7.0.270.0090.00715.19
7.0.260.0080.00815.24
7.0.250.0080.00715.29
7.0.240.0080.00815.44
7.0.230.0090.00415.36
7.0.220.0070.00415.24
7.0.210.0110.00415.35
7.0.200.0170.00815.05
7.0.190.0020.01215.33
7.0.180.0020.00915.33
7.0.170.0030.00815.28
7.0.160.0100.00315.35
7.0.150.0060.00715.50
7.0.140.0090.00415.27
7.0.130.0070.00515.21
7.0.120.0100.00315.39
7.0.110.0060.00815.29
7.0.100.0060.00515.37
7.0.90.0050.00715.34
7.0.80.0080.00215.45
7.0.70.0060.00915.38
7.0.60.0070.03317.54
7.0.50.0050.02016.30
7.0.40.0060.01615.53
7.0.30.0140.02915.55
7.0.20.0100.03415.58
7.0.10.0100.03115.65
7.0.00.0090.02915.56
5.6.400.0040.00713.95
5.6.390.0060.00314.34
5.6.380.0110.00514.13
5.6.370.0070.00714.57
5.6.360.0130.00414.32
5.6.350.0080.00614.07
5.6.340.0090.00214.41
5.6.330.0070.00914.22
5.6.320.0080.00614.21
5.6.310.0080.00514.31
5.6.300.0060.00914.12
5.6.290.0070.01014.43
5.6.280.0060.01916.62
5.6.270.0070.00914.49
5.6.260.0050.01014.34
5.6.250.0140.00214.37
5.6.240.0130.00314.20
5.6.230.0090.00514.36
5.6.220.0110.00314.29
5.6.210.0080.03416.27
5.6.200.0080.01815.45
5.6.190.0060.01916.37
5.6.180.0240.02416.43
5.6.170.0080.02116.39
5.6.160.0100.02516.40
5.6.150.0090.02515.52
5.6.140.0080.01815.39
5.6.130.0110.02515.55
5.6.120.0050.03516.61
5.6.110.0070.02416.51
5.6.100.0110.02916.45
5.6.90.0040.02216.44
5.6.80.0050.03116.33
5.6.70.0070.00714.14
5.6.60.0080.00514.33
5.6.50.0040.01114.07
5.6.40.0100.00514.18
5.6.30.0050.01214.03
5.6.20.0040.01114.12
5.6.10.0080.00814.07
5.6.00.0060.00814.23
5.5.380.0060.00412.55
5.5.370.0020.01112.67
5.5.360.0070.00912.50
5.5.350.0140.02815.13
5.5.340.0100.01914.32
5.5.330.0080.01615.24
5.5.320.0190.02615.20
5.5.310.0080.02215.13
5.5.300.0050.03214.52
5.5.290.0040.02414.38
5.5.280.0040.01915.27
5.5.270.0100.02815.35
5.5.260.0060.03115.36
5.5.250.0110.02815.27
5.5.240.0100.02914.98
5.5.230.0060.00812.53
5.5.220.0050.00512.48
5.5.210.0100.00312.54
5.5.200.0070.00712.50
5.5.190.0080.00512.55
5.5.180.0060.00712.47
5.5.170.0110.00413.99
5.5.160.0090.00312.66
5.5.150.0060.00812.58
5.5.140.0100.00512.39
5.5.130.0100.00312.39
5.5.120.0030.01012.55
5.5.110.0070.00812.55
5.5.100.0060.00712.50
5.5.90.0070.00512.27
5.5.80.0080.00412.45
5.5.70.0020.00812.50
5.5.60.0040.00912.60
5.5.50.0020.01112.50
5.5.40.0070.00712.40
5.5.30.0070.00612.63
5.5.20.0050.00712.60
5.5.10.0100.00412.41
5.5.00.0070.00612.48

preferences:
51.23 ms | 400 KiB | 5 Q