3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = array('html' => "<a href='#' class=\"\">This isn't a span tag</a>") var_dump(json_encode($obj)); var_dump(json_encode(json_encode($obj)));

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.6.70.3170.03320.50
5.4.390.0530.06018.80
5.4.380.0200.05318.59
5.4.370.0670.06718.79
5.4.360.0170.05318.77
5.4.350.0270.05318.53
5.4.340.0470.06318.59
5.4.320.0230.05318.71
5.4.310.0730.05318.74
5.4.300.0130.05718.50
5.4.290.0530.05018.74
5.4.280.0230.07018.75
5.4.270.0400.06318.73
5.4.260.0270.05318.60
5.4.250.0570.05718.77
5.4.240.0230.05018.73
5.4.230.0200.04718.77
5.4.220.0630.05718.83
5.4.210.0130.05718.81
5.4.200.0570.05016.58
5.4.190.0270.06318.44
5.4.180.0570.06018.76
5.4.170.1570.06718.54
5.4.160.0230.05318.72
5.4.150.0200.05718.58
5.4.140.0130.06016.22
5.4.130.0330.03716.47
5.4.120.0570.05316.29
5.4.110.0670.05016.44
5.4.100.0270.04316.41
5.4.90.0300.05016.22
5.4.80.0630.05716.23
5.4.70.0100.06016.13
5.4.60.0200.05316.26
5.4.50.0670.06716.22
5.4.40.0870.05716.23
5.4.30.0170.05016.39
5.4.20.0730.05316.37
5.4.10.0200.05716.29
5.4.00.0170.04715.79
5.3.290.0200.07014.66
5.3.280.0100.07714.58
5.3.270.0330.05014.51
5.3.260.0170.06014.52
5.3.250.0170.05014.61
5.3.240.0200.05314.60
5.3.230.0200.05314.49
5.3.220.0130.05314.57
5.3.210.0930.06314.52
5.3.200.0130.06714.46
5.3.190.0630.05314.55
5.3.180.0070.06014.49
5.3.170.0230.06014.55
5.3.160.0730.05714.54
5.3.150.0730.06714.61
5.3.140.0530.06714.52
5.3.130.0770.07314.54
5.3.120.0170.07314.48
5.3.110.0830.07014.54
5.3.100.0170.06014.13
5.3.90.0730.06014.02
5.3.80.0670.05014.11
5.3.70.0100.05714.11
5.3.60.0170.05013.93
5.3.50.0070.06313.94
5.3.40.0130.07013.84
5.3.30.0130.06713.94
5.3.20.0300.04713.68
5.3.10.0100.06013.57
5.3.00.0230.05313.55
5.2.170.0270.03311.11
5.2.160.0130.04311.11
5.2.150.0100.04711.18
5.2.140.0100.04311.20
5.2.130.0100.04711.13
5.2.120.0130.03711.03
5.2.110.0070.04711.07
5.2.100.0170.03711.14
5.2.90.0170.03711.06
5.2.80.0130.04711.07
5.2.70.0100.04711.05
5.2.60.0170.04011.10
5.2.50.0200.04711.07
5.2.40.0130.04311.03
5.2.30.0300.03710.95
5.2.20.0130.05311.00
5.2.10.0130.04710.89
5.2.00.0100.05310.82
5.1.60.0100.03710.04
5.1.50.0100.0379.96
5.1.40.0130.0309.96
5.1.30.0100.03710.32
5.1.20.0170.03010.38
5.1.10.0130.03310.07
5.1.00.0130.03710.08
5.0.50.0070.0338.57
5.0.40.0100.0238.44
5.0.30.0070.0478.25
5.0.20.0170.0208.26
5.0.10.0100.0278.15
5.0.00.0070.0438.17
4.4.90.0070.0305.83
4.4.80.0100.0205.86
4.4.70.0100.0205.86
4.4.60.0070.0275.89
4.4.50.0100.0205.89
4.4.40.0200.0235.90
4.4.30.0130.0205.91
4.4.20.0100.0205.94
4.4.10.0030.0305.94
4.4.00.0100.0335.96
4.3.110.0170.0135.83
4.3.100.0000.0305.81
4.3.90.0070.0205.77
4.3.80.0700.0305.78
4.3.70.0030.0335.83
4.3.60.0230.0235.82
4.3.50.0000.0375.91
4.3.40.0100.0405.75
4.3.30.0030.0304.68
4.3.20.0070.0274.54
4.3.10.0100.0234.50
4.3.00.0070.0206.97

preferences:
148.75 ms | 1394 KiB | 7 Q