3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = ""; for ($x = 0; $x < 256; ++$x) $b .= chr($x); $a = [ $b ]; var_dump(json_encode($a)); var_dump(json_decode(json_encode($a)));

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.5.30.0100.00819.63
8.5.20.0100.00819.45
8.5.10.0070.01116.75
8.5.00.0120.00920.00
8.4.180.0150.00719.46
8.4.170.0120.00923.94
8.4.160.0100.00923.83
8.4.150.0070.00516.89
8.4.140.0110.00917.38
8.4.130.0070.00417.69
8.4.120.0150.00517.86
8.4.110.0100.00820.68
8.4.100.0090.00617.89
8.4.90.0120.00820.80
8.4.80.0070.00418.58
8.4.70.0110.00520.86
8.4.60.0090.01118.75
8.4.50.0100.00918.85
8.4.40.0100.01019.23
8.4.30.0070.01020.48
8.4.20.0130.00620.75
8.4.10.0030.00619.43
8.3.300.0090.00922.49
8.3.290.0130.01118.28
8.3.280.0060.00318.18
8.3.270.0100.01016.56
8.3.260.0110.00816.70
8.3.250.0100.00919.02
8.3.240.0080.01216.33
8.3.230.0090.01016.56
8.3.220.0130.00518.87
8.3.210.0100.00816.47
8.3.200.0040.00516.45
8.3.190.0050.00217.30
8.3.180.0090.01018.90
8.3.170.0060.01218.88
8.3.160.0070.01017.40
8.3.150.0070.01117.19
8.3.140.0120.00318.93
8.3.130.0040.00418.26
8.3.120.0080.00019.02
8.3.110.0040.00420.94
8.3.100.0030.00616.66
8.3.90.0040.00418.51
8.3.80.0030.00618.30
8.3.70.0090.00916.38
8.3.60.0090.00618.18
8.3.50.0100.00817.21
8.3.40.0130.00318.48
8.3.30.0080.00818.70
8.3.20.0040.00421.73
8.3.10.0040.00421.90
8.3.00.0050.00323.51
8.2.300.0120.00817.96
8.2.290.0110.00916.61
8.2.280.0080.00518.37
8.2.270.0170.00316.79
8.2.260.0110.00418.28
8.2.250.0040.01616.45
8.2.240.0150.00318.78
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0000.00726.77
8.2.200.0030.00618.29
8.2.190.0140.00016.58
8.2.180.0080.00816.50
8.2.170.0120.00918.96
8.2.160.0090.00922.96
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00619.37
8.2.100.0040.00817.72
8.2.90.0000.00718.28
8.2.80.0060.00317.97
8.2.70.0060.00318.04
8.2.60.0030.00518.09
8.2.50.0030.00518.10
8.2.40.0000.00719.42
8.2.30.0030.00519.19
8.2.20.0040.00418.13
8.2.10.0060.00320.78
8.2.00.0040.00419.34
8.1.340.0100.01017.55
8.1.330.0080.01016.18
8.1.320.0110.00817.82
8.1.310.0040.01118.63
8.1.300.0040.00419.63
8.1.290.0030.00618.88
8.1.280.0100.01025.92
8.1.270.0070.00420.69
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.47
8.1.230.0040.00820.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0030.00618.63
8.1.160.0000.00718.89
8.1.150.0040.00418.80
8.1.140.0050.00218.79
8.1.130.0030.00320.18
8.1.120.0030.00417.40
8.1.110.0040.00417.37
8.1.100.0040.00417.35
8.1.90.0000.00717.38
8.1.80.0000.00817.46
8.1.70.0080.00017.36
8.1.60.0060.00317.46
8.1.50.0060.00317.49
8.1.40.0060.00317.51
8.1.30.0050.00317.63
8.1.20.0080.00017.62
8.1.10.0080.00017.43
8.1.00.0000.00817.39
8.0.300.0040.00420.03
8.0.290.0040.00416.75
8.0.280.0030.00318.40
8.0.270.0000.00717.14
8.0.260.0080.00018.48
8.0.250.0040.00416.97
8.0.240.0030.00317.00
8.0.230.0070.00016.96
8.0.220.0060.00316.87
8.0.210.0040.00416.91
8.0.200.0030.00316.94
8.0.190.0000.00716.98
8.0.180.0000.00816.96
8.0.170.0040.00416.93
8.0.160.0000.00716.93
8.0.150.0000.00716.77
8.0.140.0030.00316.86
8.0.130.0070.00013.31
8.0.120.0040.00416.92
8.0.110.0040.00416.90
8.0.100.0080.00016.78
8.0.90.0040.00416.79
8.0.80.0060.01516.83
8.0.70.0070.00016.88
8.0.60.0040.00416.93
8.0.50.0000.00716.90
8.0.30.0030.01517.23
8.0.20.0100.01017.09
8.0.10.0040.00417.02
8.0.00.0130.00616.58
7.4.330.0050.00015.55
7.4.320.0000.00616.61
7.4.300.0000.00916.65
7.4.290.0000.00816.65
7.4.280.0040.00416.64
7.4.270.0040.00416.58
7.4.260.0040.00416.58
7.4.250.0030.00316.41
7.4.240.0050.00216.48
7.4.230.0050.00316.48
7.4.220.0040.00416.35
7.4.210.0060.01116.57
7.4.200.0040.00416.57
7.4.160.0100.00816.44
7.4.140.0150.00317.86
7.4.130.0070.01016.68
7.4.120.0170.00716.61
7.4.110.0130.00416.43
7.4.100.0080.00816.47
7.4.90.0030.01316.65
7.4.80.0110.00619.39
7.4.70.0060.00916.42
7.4.60.0130.00316.74
7.4.50.0100.00716.46
7.4.40.0140.01016.54
7.4.00.0090.00614.75
7.3.330.0050.00013.00
7.3.320.0030.00313.10
7.3.310.0000.00716.11
7.3.300.0000.00716.12
7.3.290.0060.00016.16
7.3.280.0090.00616.21
7.3.260.0110.00616.35
7.3.230.0120.00616.37
7.3.210.0130.01016.50
7.3.200.0060.01016.36
7.3.190.0060.01116.66
7.3.180.0090.00616.34
7.3.170.0100.00716.45
7.3.160.0040.01116.30
7.3.60.0030.01014.77
7.3.50.0130.01014.84
7.3.40.0200.00414.50
7.3.30.0120.00914.73
7.3.20.0110.01114.58
7.3.10.0180.00014.71
7.3.00.0090.00314.60
7.2.330.0060.01216.70
7.2.320.0040.01216.57
7.2.310.0070.01016.51
7.2.300.0140.00416.47
7.2.290.0090.01016.71
7.2.190.0030.01214.72
7.2.180.0060.01815.01
7.2.170.0150.00614.81
7.2.160.0120.01514.96
7.2.150.0120.00414.95
7.2.140.0210.00614.71
7.2.130.0200.00315.19
7.2.120.0160.01014.99
7.2.110.0110.00615.18
7.2.100.0090.00915.04
7.2.90.0120.00615.12
7.2.80.0030.01014.92
7.2.70.0110.00314.73
7.2.60.0830.00315.05
7.2.50.0210.00614.89
7.2.40.0210.00014.80
7.2.30.0130.00315.13
7.2.20.0130.00314.91
7.2.10.0190.00515.12
7.2.00.0080.01614.97
7.1.300.0120.00613.98
7.1.290.0190.00813.96
7.1.280.0110.00813.90
7.1.270.0110.01314.00
7.1.260.0070.00713.91
7.1.250.0060.00913.76

preferences:
74.54 ms | 1425 KiB | 5 Q