3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode(json_encode(['one' => 1, 'two' => 2, 'four' => 4])));

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.0090.00618.29
8.3.50.0000.01416.38
8.3.40.0110.00718.63
8.3.30.0120.00318.53
8.3.20.0040.00418.76
8.3.10.0050.00321.64
8.3.00.0040.00420.71
8.2.180.0070.01418.29
8.2.170.0120.00622.96
8.2.160.0030.01022.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.57
8.2.120.0040.00426.35
8.2.110.0090.00021.08
8.2.100.0030.00917.91
8.2.90.0050.00317.91
8.2.80.0050.00319.47
8.2.70.0060.00317.80
8.2.60.0040.00417.88
8.2.50.0040.00418.10
8.2.40.0040.00422.15
8.2.30.0030.00619.04
8.2.20.0090.00017.83
8.2.10.0000.00817.91
8.2.00.0080.00017.96
8.1.280.0150.00625.92
8.1.270.0030.00523.77
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00922.13
8.1.230.0080.00422.66
8.1.220.0060.00317.74
8.1.210.0050.00518.77
8.1.200.0100.00017.36
8.1.190.0000.00917.10
8.1.180.0000.00718.10
8.1.170.0030.00518.66
8.1.160.0040.00418.79
8.1.150.0000.00820.54
8.1.140.0040.00419.47
8.1.130.0030.00318.71
8.1.120.0000.00817.38
8.1.110.0040.00417.30
8.1.100.0060.00317.32
8.1.90.0040.00417.38
8.1.80.0050.00317.35
8.1.70.0030.00517.31
8.1.60.0030.00617.48
8.1.50.0030.00517.27
8.1.40.0040.00417.41
8.1.30.0000.00817.41
8.1.20.0000.00717.40
8.1.10.0080.00017.25
8.1.00.0000.00817.16
8.0.300.0000.00719.48
8.0.290.0000.00816.63
8.0.280.0070.00018.32
8.0.270.0000.00717.12
8.0.260.0040.00416.69
8.0.250.0040.00416.82
8.0.240.0040.00416.84
8.0.230.0030.00316.71
8.0.220.0060.00316.63
8.0.210.0030.00416.77
8.0.200.0030.00316.72
8.0.190.0000.00816.84
8.0.180.0000.00716.80
8.0.170.0040.00416.75
8.0.160.0000.00716.84
8.0.150.0000.00816.67
8.0.140.0080.00016.77
8.0.130.0000.00613.17
8.0.120.0070.00016.80
8.0.110.0040.00416.76
8.0.100.0030.00316.71
8.0.90.0000.00716.81
8.0.80.0130.00316.80
8.0.70.0040.00416.64
8.0.60.0020.00616.78
8.0.50.0040.00416.70
8.0.30.0100.00816.81
8.0.20.0070.01217.40
8.0.10.0040.00416.91
8.0.00.0120.00616.54
7.4.330.0000.00515.55
7.4.320.0030.00316.27
7.4.300.0030.00316.26
7.4.290.0030.00316.31
7.4.280.0050.00216.34
7.4.270.0030.00316.38
7.4.260.0030.00313.10
7.4.250.0000.00716.40
7.4.240.0000.00716.27
7.4.230.0000.00716.46
7.4.220.0090.00916.39
7.4.210.0080.00616.50
7.4.200.0040.00416.46
7.4.160.0060.01016.23
7.4.150.0090.00917.40
7.4.140.0050.01217.86
7.4.130.0170.00316.42
7.4.120.0100.01116.37
7.4.110.0080.00816.33
7.4.100.0150.00916.26
7.4.90.0130.00316.32
7.4.80.0130.00619.39
7.4.70.0100.00716.45
7.4.60.0130.00316.23
7.4.50.0030.01016.36
7.4.40.0060.00916.45
7.4.30.0040.01216.35
7.4.00.0060.00914.58
7.3.330.0000.00513.04
7.3.320.0000.00513.03
7.3.310.0070.00016.07
7.3.300.0000.00615.96
7.3.290.0070.01016.10
7.3.280.0100.00716.14
7.3.270.0130.00317.40
7.3.260.0110.00616.28
7.3.250.0130.01016.34
7.3.240.0130.00716.04
7.3.230.0090.00916.07
7.3.210.0160.00316.14
7.3.200.0100.00516.33
7.3.190.0140.00316.24
7.3.180.0130.00316.19
7.3.170.0120.00416.39
7.3.160.0040.01316.15
7.3.120.0080.00814.66
7.3.110.0110.00414.94
7.3.100.0000.01014.52
7.3.90.0090.00614.59
7.3.80.0000.01414.44
7.3.70.0060.01014.57
7.3.60.0110.00414.66
7.3.50.0060.00914.45
7.3.40.0060.00614.61
7.3.30.0030.00914.60
7.3.20.0030.01016.55
7.3.10.0030.00616.48
7.3.00.0000.01716.41
7.2.330.0170.00016.14
7.2.320.0140.00716.19
7.2.310.0130.00316.51
7.2.300.0070.01016.30
7.2.290.0180.00016.31
7.2.240.0090.00314.96
7.2.230.0120.00314.71
7.2.220.0030.01014.71
7.2.210.0060.00315.04
7.2.200.0060.00614.98
7.2.190.0060.00914.76
7.2.180.0040.01414.62
7.2.170.0060.00914.92
7.2.160.0040.01514.93
7.2.150.0060.00916.70
7.2.140.0060.00916.50
7.2.130.0030.01016.57
7.2.120.0070.01116.69
7.2.110.0080.00816.71
7.2.100.0070.00716.36
7.2.90.0080.00616.87
7.2.80.0030.01016.55
7.2.70.0100.00716.46
7.2.60.0040.01116.68
7.2.50.0030.00916.70
7.2.40.0100.00016.48
7.2.30.0060.00616.55
7.2.20.0060.00916.66
7.2.10.0030.01016.80
7.2.00.0020.01217.79
7.1.330.0090.00615.73
7.1.320.0080.00415.72
7.1.310.0150.00015.65
7.1.300.0060.00615.36
7.1.290.0060.00915.79
7.1.280.0090.00615.69
7.1.270.0070.00415.84
7.1.260.0070.00715.58
7.1.250.0040.01115.84
7.1.200.0070.00715.51
7.1.100.0050.00317.83
7.1.70.0000.01117.05
7.1.60.1100.00733.06
7.1.50.0930.01032.90
7.1.40.0830.01032.35
7.1.30.1030.01032.73
7.1.20.0770.01332.36
7.1.10.0630.01014.51
7.1.00.1000.00714.64
7.0.200.1070.01014.83
7.0.190.1000.01014.76
7.0.180.0670.01314.27
7.0.170.1030.00314.36
7.0.160.0800.00714.33
7.0.150.0700.00714.25
7.0.140.0670.01314.12
7.0.130.0670.01014.72
7.0.120.0770.00714.49
7.0.110.1070.01014.42
7.0.100.0700.01014.34
7.0.90.0730.00714.54
7.0.80.0730.00314.34
7.0.70.0730.01014.45
7.0.60.0770.01014.33
7.0.50.0700.01014.60
7.0.40.0970.00714.51
7.0.30.0670.00714.63
7.0.20.1070.01314.57
7.0.10.0770.00714.41
7.0.00.0830.00314.57

preferences:
58.82 ms | 401 KiB | 5 Q