3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_arr={"#D1 1":"750x225","#D1 2":"735x450","#D1 3":"750x216","#D2 1":"750x450","#D2 2":"735x450"}; $encode=json_encode($json_arr); print_r($encode);

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)
5.4.260.0270.06718.99
5.4.250.0300.04718.93
5.4.240.0230.07318.88
5.4.230.0230.04318.85
5.4.220.0170.08019.14
5.4.210.0170.07019.15
5.4.200.0230.03719.30
5.4.190.0270.07319.07
5.4.180.0170.06018.94
5.4.170.0230.04019.14
5.4.160.0200.07719.11
5.4.150.0270.06019.22
5.4.140.0130.05716.38
5.4.130.0230.06716.38
5.4.120.0300.05016.37
5.4.110.0200.06316.37
5.4.100.0300.06316.58
5.4.90.0200.07316.48
5.4.80.0270.06716.26
5.4.70.0170.03716.54
5.4.60.0170.03716.34
5.4.50.0200.04316.32
5.4.40.0170.05316.51
5.4.30.0170.07716.28
5.4.20.0200.05016.53
5.4.10.0170.04316.47
5.4.00.0270.06715.82
5.3.280.0230.07014.43
5.3.270.0230.06014.46
5.3.260.0270.07014.46
5.3.250.0270.06714.48
5.3.240.0230.07314.47
5.3.230.0200.06314.46
5.3.220.0230.07314.41
5.3.210.0300.07014.44
5.3.200.0270.04014.47
5.3.190.0200.05314.51
5.3.180.0230.07314.42
5.3.170.0200.05014.41
5.3.160.0200.05714.43
5.3.150.0230.05014.65
5.3.140.0130.04314.51
5.3.130.0200.07014.39
5.3.120.0230.05714.52
5.3.110.0200.04714.38
5.3.100.0230.06713.90
5.3.90.0130.06013.97
5.3.80.0200.07313.81
5.3.70.0270.06713.96
5.3.60.0270.04313.88
5.3.50.0200.04013.88
5.3.40.0330.06013.99
5.3.30.0230.04013.84
5.3.20.0300.06013.52
5.3.10.0230.05313.50
5.3.00.0270.07013.59
5.2.170.0170.06013.22
5.2.160.0130.04713.22
5.2.150.0270.04313.22
5.2.140.0230.05713.22
5.2.130.0270.03013.22
5.2.120.0170.06713.22
5.2.110.0230.06013.22
5.2.100.0230.04713.22
5.2.90.0100.06313.22
5.2.80.0230.03713.22
5.2.70.0230.05313.22
5.2.60.0300.03713.22
5.2.50.0230.05313.22
5.2.40.0230.04713.22
5.2.30.0170.03313.22
5.2.20.0200.05713.22
5.2.10.0170.05013.22
5.2.00.0230.05313.22
5.1.60.0130.04713.22
5.1.50.0130.04713.22
5.1.40.0130.05313.22
5.1.30.0200.05013.22
5.1.20.0200.05313.22
5.1.10.0230.03313.22
5.1.00.0170.04713.22
5.0.50.0100.02313.22
5.0.40.0100.04013.22
5.0.30.0100.05013.22
5.0.20.0000.04013.22
5.0.10.0070.04713.22
5.0.00.0070.06313.22
4.4.90.0100.03313.22
4.4.80.0070.02313.22
4.4.70.0100.03713.22
4.4.60.0100.03313.22
4.4.50.0100.03313.22
4.4.40.0100.04713.22
4.4.30.0100.03013.22
4.4.20.0070.03713.22
4.4.10.0130.02713.22
4.4.00.0100.04713.22
4.3.110.0070.02013.22
4.3.100.0100.03713.22
4.3.90.0100.02013.22
4.3.80.0100.03313.22
4.3.70.0130.03013.22
4.3.60.0000.03013.22
4.3.50.0070.01713.22
4.3.40.0100.03013.22
4.3.30.0070.02013.22
4.3.20.0030.02013.22
4.3.10.0000.02013.22
4.3.00.0030.03713.22

preferences:
140.95 ms | 1394 KiB | 7 Q