3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"Confirmation":"200710035843DH4","Message":"success","Status":"success"}'; $array = json_decode($str,true); foreach ( $array as $key => $value ) { $$key = $value; } echo $Confirmation;

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.20.0070.01420.38
8.4.10.0050.01420.55
8.3.150.0070.01117.27
8.3.140.0040.00418.70
8.3.130.0030.00618.46
8.3.120.0060.00318.93
8.3.110.0080.00018.44
8.3.100.0000.00824.06
8.3.90.0050.00326.77
8.3.80.0030.00619.36
8.3.70.0120.00616.58
8.3.60.0040.01118.43
8.3.50.0130.00523.74
8.3.40.0100.00318.70
8.3.30.0090.00618.58
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.270.0040.01516.71
8.2.260.0140.00416.69
8.2.250.0040.00416.70
8.2.240.0060.00317.30
8.2.230.0100.01020.94
8.2.220.0030.00737.54
8.2.210.0070.01126.77
8.2.200.0090.00018.88
8.2.190.0090.00916.63
8.2.180.0120.00325.92
8.2.170.0110.00418.91
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0060.00322.29
8.2.100.0080.00419.37
8.2.90.0050.00317.63
8.2.80.0060.00318.78
8.2.70.0040.00417.38
8.2.60.0040.00417.50
8.2.50.0050.00318.05
8.2.40.0000.00818.02
8.2.30.0000.00718.12
8.2.20.0040.00418.03
8.2.10.0030.00519.26
8.2.00.0050.00219.41
8.1.310.0110.01116.19
8.1.300.0130.00315.98
8.1.290.0030.00730.84
8.1.280.0120.00325.92
8.1.270.0060.00323.99
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0040.00419.13
8.1.230.0080.00317.70
8.1.220.0040.00418.69
8.1.210.0040.00418.77
8.1.200.0030.00517.23
8.1.190.0040.00717.23
8.1.180.0060.00618.10
8.1.170.0040.00418.71
8.1.160.0040.00418.88
8.1.150.0040.00418.88
8.1.140.0030.00318.84
8.1.130.0000.00820.17
8.1.120.0000.00717.46
8.1.110.0020.00717.44
8.1.100.0040.00817.36
8.1.90.0050.00717.44
8.1.80.0040.00817.41
8.1.70.0010.01117.40
8.1.60.0020.01117.47
8.1.50.0100.00317.51
8.1.40.0040.00817.50
8.1.30.0100.00317.61
8.1.20.0050.00717.60
8.1.10.0050.00717.48
8.1.00.0060.00917.43
8.0.300.0030.00618.78
8.0.290.0060.00316.63
8.0.280.0000.00818.57
8.0.270.0030.00317.85
8.0.260.0060.00018.48
8.0.250.0030.00316.95
8.0.240.0060.00216.80
8.0.230.0090.00216.88
8.0.220.0020.00816.82
8.0.210.0060.00516.76
8.0.200.0070.00416.93
8.0.190.0030.00916.80
8.0.180.0050.00716.89
8.0.170.0040.00716.83
8.0.160.0070.00416.89
8.0.150.0100.00116.81
8.0.140.0070.00516.84
8.0.130.0050.00615.02
8.0.120.0060.00616.81
8.0.110.0070.00416.81
8.0.100.0020.00916.80
8.0.90.0100.00116.69
8.0.80.0050.01116.81
8.0.70.0070.00516.85
8.0.60.0050.00516.86
8.0.50.0090.00216.84
8.0.30.0100.00616.94
8.0.20.0100.00716.99
8.0.10.0070.00417.03
8.0.00.0100.00416.88
7.4.330.0000.00515.55
7.4.320.0040.00416.47
7.4.300.0050.00416.56
7.4.290.0040.00716.54
7.4.280.0050.00416.54
7.4.270.0080.00216.43
7.4.260.0050.00314.70
7.4.250.0080.00116.35
7.4.240.0060.00516.45
7.4.230.0070.00416.52
7.4.220.0040.00516.58
7.4.210.0100.00616.55
7.4.200.0090.00116.47
7.4.190.0080.00616.61
7.4.180.0140.00016.49
7.4.160.0110.00416.48
7.4.150.0140.00016.46
7.4.140.0080.00416.53
7.4.130.0060.01016.50
7.4.120.0110.00416.43
7.4.110.0120.00316.43
7.4.100.0110.00316.56
7.4.90.0100.00616.41
7.4.80.0130.00716.39
7.4.70.0100.00816.31
7.4.60.0110.00716.35
7.4.50.0050.01016.24
7.4.40.0100.00616.32
7.4.30.0080.00716.37
7.4.20.0110.00516.38
7.4.10.0090.00716.31
7.4.00.0090.01116.18
7.3.330.0110.00016.23
7.3.320.0100.00014.72
7.3.310.0070.00416.25
7.3.300.0090.00216.29
7.3.290.0100.00716.35
7.3.280.0120.00516.37
7.3.270.0100.00516.30
7.3.260.0100.00916.37
7.3.250.0080.00616.13
7.3.240.0050.01016.24
7.3.230.0150.00116.23
7.3.220.0090.00516.32
7.3.210.0050.01116.21
7.3.200.0170.00216.08
7.3.190.0100.00816.13
7.3.180.0110.00616.14
7.3.170.0160.00316.36
7.3.160.0100.00616.29
7.3.150.0100.00516.35
7.3.140.0100.00716.32
7.3.130.0070.01116.29
7.3.120.0130.00316.22
7.3.110.0100.00616.16
7.3.100.0070.00916.37
7.3.90.0130.00616.35
7.3.80.0090.00916.32
7.3.70.0100.00516.36
7.3.60.0080.01016.38
7.3.50.0090.00816.26
7.3.40.0120.00516.35
7.3.30.0070.01016.30
7.3.20.0100.00616.47
7.3.10.0120.00616.33
7.3.00.0100.00616.29
7.2.340.0050.00516.30
7.2.330.0110.00616.42
7.2.320.0100.01116.54
7.2.310.0090.00916.52
7.2.300.0080.01116.49
7.2.290.0160.00116.59
7.2.280.0100.00716.31
7.2.270.0060.01016.54
7.2.260.0080.00816.54
7.2.250.0110.00616.55
7.2.240.0090.00516.59
7.2.230.0110.00716.44
7.2.220.0140.00516.49
7.2.210.0110.00516.58
7.2.200.0150.00416.44
7.2.190.0130.00516.59
7.2.180.0100.00816.57
7.2.170.0090.00916.55
7.2.160.0090.00916.39
7.2.150.0140.00416.56
7.2.140.0090.00816.52
7.2.130.0050.01216.52
7.2.120.0080.00816.66
7.2.110.0140.00316.65
7.2.100.0110.00616.66
7.2.90.0210.00316.58
7.2.80.0100.00616.62
7.2.70.0130.00516.41
7.2.60.0110.00616.61
7.2.50.0130.00516.56
7.2.40.0110.00616.54
7.2.30.0070.01016.59
7.2.20.0320.00916.55
7.2.10.0120.00616.67
7.2.00.0150.00216.46

preferences:
28.82 ms | 403 KiB | 5 Q