3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('a' => 'A', 'b' => array('b1' => 'B!', 'b2' => 'B"'), 'c' => 'C'); $decod = json_decode(json_encode($data)); foreach($decod as $prop) { var_dump($prop); }

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.0040.01118.27
8.3.50.0090.00621.99
8.3.40.0130.00718.59
8.3.30.0100.00320.21
8.3.20.0080.00020.21
8.3.10.0120.00422.04
8.3.00.0050.00322.45
8.2.180.0110.00716.32
8.2.170.0110.01122.96
8.2.160.0090.00622.20
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0050.00319.83
8.2.110.0100.01022.17
8.2.100.0060.00617.78
8.2.90.0000.00818.92
8.2.80.0000.00719.20
8.2.70.0000.00817.49
8.2.60.0080.00017.93
8.2.50.0030.00518.07
8.2.40.0030.00518.22
8.2.30.0020.00518.06
8.2.20.0000.00717.69
8.2.10.0000.00717.79
8.2.00.0040.00417.83
8.1.280.0140.00025.92
8.1.270.0060.00324.66
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00423.82
8.1.230.0000.01119.16
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.51
8.1.180.0080.00019.14
8.1.170.0000.00818.45
8.1.160.0000.00722.08
8.1.150.0040.00418.50
8.1.140.0040.00417.48
8.1.130.0030.00317.88
8.1.120.0040.00417.45
8.1.110.0050.00317.36
8.1.100.0000.00817.32
8.1.90.0070.00017.34
8.1.80.0000.00817.31
8.1.70.0070.00017.31
8.1.60.0000.00817.59
8.1.50.0070.00017.49
8.1.40.0080.00017.52
8.1.30.0040.00417.67
8.1.20.0060.00317.64
8.1.10.0070.00017.41
8.1.00.0030.00617.26
8.0.300.0000.00818.77
8.0.290.0070.00017.18
8.0.280.0050.00318.40
8.0.270.0030.00317.20
8.0.260.0030.00316.79
8.0.250.0070.00016.92
8.0.240.0000.00716.94
8.0.230.0030.00316.89
8.0.220.0030.00716.89
8.0.210.0060.00016.91
8.0.200.0040.00416.83
8.0.190.0030.00616.90
8.0.180.0070.00016.91
8.0.170.0040.00416.81
8.0.160.0030.00316.92
8.0.150.0030.00316.79
8.0.140.0000.00716.84
8.0.130.0000.00513.37
8.0.120.0000.00816.89
8.0.110.0050.00316.86
8.0.100.0070.00016.84
8.0.90.0050.00216.75
8.0.80.0070.00716.89
8.0.70.0040.00416.75
8.0.60.0000.00816.91
8.0.50.0000.00716.68
8.0.30.0090.00916.94
8.0.20.0130.00617.40
8.0.10.0000.00717.11
8.0.00.0150.00716.78
7.4.330.0000.00515.01
7.4.320.0000.00616.35
7.4.300.0050.00316.54
7.4.290.0000.00716.58
7.4.280.0050.00216.59
7.4.270.0060.00316.58
7.4.260.0060.00013.28
7.4.250.0000.00816.51
7.4.240.0020.00516.47
7.4.230.0030.00316.43
7.4.220.0060.01216.50
7.4.210.0080.00616.56
7.4.200.0000.00716.50
7.4.190.0050.00216.72
7.4.160.0120.00916.25
7.4.150.0100.00717.40
7.4.140.0110.01017.86
7.4.130.0140.00816.52
7.4.120.0090.00916.35
7.4.110.0130.00416.54
7.4.100.0080.01516.46
7.4.90.0100.00716.43
7.4.80.0030.01419.39
7.4.70.0060.01016.51
7.4.60.0160.00016.39
7.4.50.0000.00816.58
7.4.40.0070.00722.77
7.4.30.0100.00716.33
7.4.00.0060.00314.75
7.3.330.0000.00513.19
7.3.320.0060.00013.18
7.3.310.0000.00716.35
7.3.300.0000.00616.09
7.3.290.0110.00416.32
7.3.280.0090.00916.26
7.3.270.0110.00717.40
7.3.260.0090.00916.36
7.3.250.0120.00716.41
7.3.240.0060.01716.30
7.3.230.0080.00816.39
7.3.210.0070.01016.40
7.3.200.0100.00719.39
7.3.190.0080.00816.35
7.3.180.0110.00716.52
7.3.170.0090.00616.47
7.3.160.0120.00616.24
7.3.120.0070.00714.86
7.2.330.0080.00816.43
7.2.320.0080.00916.50
7.2.310.0100.01316.64
7.2.300.0060.01116.48
7.2.290.0070.01116.57
7.1.70.0000.01016.82
7.1.60.0100.00719.43
7.1.50.0060.01516.82
7.1.00.0030.05722.57
7.0.200.0090.00616.97
7.0.140.0030.07021.98
7.0.110.0570.08319.93
7.0.100.0530.08020.00
7.0.90.0500.08019.91
7.0.80.0530.06719.88
7.0.70.0500.08319.91
7.0.60.0470.07320.08
7.0.50.0470.07020.30
7.0.40.0130.07020.29
7.0.30.0030.04720.09
7.0.20.0130.04320.23
7.0.10.0100.08320.02
7.0.00.0070.09019.95
5.6.280.0070.07020.90
5.6.250.0000.08720.89
5.6.240.0130.07320.66
5.6.230.0100.07720.55
5.6.220.0070.04020.80
5.6.210.0070.06720.39
5.6.200.0170.07721.14
5.6.190.0100.07320.94
5.6.180.0100.07721.13
5.6.170.0070.07721.02
5.6.160.0070.04720.98
5.6.150.0030.08320.94
5.6.140.0070.07721.26
5.6.130.0100.08021.21
5.6.120.0130.05320.94
5.6.110.0030.08721.27
5.6.100.0130.08021.25
5.6.90.0130.05321.03
5.6.80.0200.06720.53
5.6.70.0030.08020.59
5.6.60.0070.07720.51
5.6.50.0070.06320.33
5.6.40.0200.04320.44
5.6.30.0130.06720.50
5.6.20.0100.07020.42
5.6.10.0030.08020.44
5.6.00.0130.07720.35
5.5.380.0070.07020.35
5.5.370.0070.08020.36
5.5.360.0070.07020.54
5.5.350.0070.08020.38
5.5.340.0000.08320.95
5.5.330.0200.07020.90
5.5.320.0030.08320.87
5.5.310.0200.07320.95
5.5.300.0000.05720.80
5.5.290.0130.07320.83
5.5.280.0130.08021.01
5.5.270.0100.08020.84
5.5.260.0130.07320.89
5.5.250.0070.08020.65
5.5.240.0070.07720.40
5.5.230.0070.05020.35
5.5.220.0100.06720.18
5.5.210.0130.07320.32
5.5.200.0030.08020.13
5.5.190.0030.07720.30
5.5.180.0100.07720.12
5.5.160.0070.08020.04
5.5.150.0000.08320.24
5.5.140.0100.04720.21
5.5.130.0100.07720.31
5.5.120.0030.08020.15
5.5.110.0100.07320.31
5.5.100.0100.03320.25
5.5.90.0070.03720.18
5.5.80.0030.04020.07
5.5.70.0000.04720.20
5.5.60.0000.04020.09
5.5.50.0070.03720.12
5.5.40.0070.03720.03
5.5.30.0070.04020.12
5.5.20.0070.03320.05
5.5.10.0100.03320.13
5.5.00.0070.04020.00
5.4.450.0100.06719.40
5.4.440.0100.08019.60
5.4.430.0100.07719.41
5.4.420.0100.05019.32
5.4.410.0200.06319.22
5.4.400.0070.07019.03
5.4.390.0100.07018.93
5.4.380.0130.07018.95
5.4.370.0100.06319.18
5.4.360.0070.04719.02
5.4.350.0100.07319.25
5.4.340.0130.07019.03
5.4.320.0030.08019.08
5.4.310.0070.07318.98
5.4.300.0030.06719.00
5.4.290.0100.07318.94
5.4.280.0130.07319.27
5.4.270.0030.06718.98
5.4.260.0070.07318.98
5.4.250.0000.04019.02
5.4.240.0070.04719.00
5.4.230.0070.05719.11
5.4.220.0000.04719.09
5.4.210.0070.03719.11
5.4.200.0030.03719.07
5.4.190.0030.03719.16
5.4.180.0030.03719.24
5.4.170.0030.03719.17
5.4.160.0070.03019.07
5.4.150.0100.06719.05
5.4.140.0000.04716.50
5.4.130.0000.03716.43
5.4.120.0100.03016.39
5.4.110.0070.03016.38
5.4.100.0000.03716.48
5.4.90.0070.04716.38
5.4.80.0030.03316.51
5.4.70.0030.05316.35
5.4.60.0070.03316.26
5.4.50.0070.05316.48
5.4.40.0000.03716.31
5.4.30.0130.03316.35
5.4.20.0070.03316.38
5.4.10.0070.03016.15
5.4.00.0030.03315.68
5.3.290.0070.05014.50
5.3.280.0100.03714.52
5.3.270.0000.03714.61
5.3.260.0000.04714.55
5.3.250.0000.04014.68
5.3.240.0000.06314.71
5.3.230.0070.04014.48
5.3.220.0000.06314.64
5.3.210.0030.03714.67
5.3.200.0030.03714.43
5.3.190.0070.04014.36
5.3.180.0070.07014.56
5.3.170.0000.04014.45
5.3.160.0070.06714.51
5.3.150.0000.04014.60
5.3.140.0070.03314.63
5.3.130.0000.04014.62
5.3.120.0030.05314.45
5.3.110.0030.04014.41
5.3.100.0000.04313.98
5.3.90.0030.03714.12
5.3.80.0000.07313.88
5.3.70.0000.04713.84
5.3.60.0030.04014.02
5.3.50.0070.03013.77
5.3.40.0030.03713.88
5.3.30.0070.03014.01
5.3.20.0030.03313.77
5.3.10.0070.03013.56
5.3.00.0030.06713.65
5.2.170.0000.03011.07
5.2.160.0030.02711.22
5.2.150.0030.02711.09
5.2.140.0070.02311.05
5.2.130.0030.03011.11
5.2.120.0000.03011.01
5.2.110.0000.03011.04
5.2.100.0030.04011.02
5.2.90.0000.03011.04
5.2.80.0030.03011.10
5.2.70.0000.03011.15
5.2.60.0000.03010.97
5.2.50.0070.04011.08
5.2.40.0130.04711.15
5.2.30.0030.06010.86
5.2.20.0030.03311.03
5.2.10.0030.04010.86
5.2.00.0070.06010.79
5.1.60.0100.02710.23
5.1.50.0000.05710.24
5.1.40.0000.0579.86
5.1.30.0130.05010.55
5.1.20.0070.05310.20
5.1.10.0030.0609.97
5.1.00.0030.05710.00
5.0.50.0100.0408.79
5.0.40.0030.0408.30
5.0.30.0000.0578.23
5.0.20.0030.0478.27
5.0.10.0100.0338.41
5.0.00.0030.0638.21
4.4.90.0000.0138.21
4.4.80.0030.0238.21
4.4.70.0030.0378.21
4.4.60.0000.0378.21
4.4.50.0000.0338.21
4.4.40.0070.0478.21
4.4.30.0000.0378.21
4.4.20.0030.0338.21
4.4.10.0000.0278.21
4.4.00.0000.0308.21
4.3.110.0030.0338.21
4.3.100.0030.0338.21
4.3.90.0100.0278.21
4.3.80.0030.0538.21
4.3.70.0000.0338.21
4.3.60.0030.0338.21
4.3.50.0030.0338.21
4.3.40.0000.0508.21
4.3.30.0000.0378.21
4.3.20.0000.0408.21
4.3.10.0000.0408.21
4.3.00.0030.0338.21

preferences:
40.35 ms | 401 KiB | 5 Q