3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'bold' => false, 'color' => array('argb' => 'FF000000'), 'size' => 8 ) 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)
5.4.260.0100.04718.98
5.4.250.0030.05718.76
5.4.240.0100.05018.98
5.4.230.0070.05018.96
5.4.220.0070.06018.90
5.4.210.0100.05318.99
5.4.200.0030.05019.01
5.4.190.0030.07018.93
5.4.180.0070.05018.83
5.4.170.0170.06718.76
5.4.160.0000.06018.78
5.4.150.0070.05718.98
5.4.140.0200.04716.59
5.4.130.0100.04316.58
5.4.120.0030.05016.57
5.4.110.0100.04316.35
5.4.100.0100.06716.49
5.4.90.0070.07016.62
5.4.80.0170.04016.45
5.4.70.0030.06016.47
5.4.60.0070.06016.48
5.4.50.0070.04716.36
5.4.40.0100.06316.58
5.4.30.0070.04716.37
5.4.20.0100.04716.32
5.4.10.0070.05016.61
5.4.00.0100.04315.75
5.3.280.0070.05014.38
5.3.270.0070.05314.75
5.3.260.0070.05314.75
5.3.250.0030.05314.63
5.3.240.0070.05014.66
5.3.230.0130.05714.75
5.3.220.0070.06014.45
5.3.210.0070.05314.45
5.3.200.0130.05014.66
5.3.190.0230.05714.59
5.3.180.0030.05314.58
5.3.170.0070.07714.61
5.3.160.0100.06714.48
5.3.150.0170.03714.42
5.3.140.0170.03714.56
5.3.130.0100.05314.64
5.3.120.0070.07014.70
5.3.110.0030.05714.25
5.3.100.0030.05014.05
5.3.90.0030.05313.86
5.3.80.0100.04713.81
5.3.70.0000.05713.95
5.3.60.0130.04313.89
5.3.50.0230.05013.82
5.3.40.0170.04013.84
5.3.30.0100.04713.61
5.3.20.0070.05013.58
5.3.10.0100.04313.67
5.3.00.0070.05013.34
5.2.170.0070.03711.14
5.2.160.0070.04011.15
5.2.150.0100.04011.03
5.2.140.0070.06010.97
5.2.130.0030.04311.09
5.2.120.0070.04011.01
5.2.110.0100.04710.86
5.2.100.0070.03710.93
5.2.90.0070.04011.02
5.2.80.0070.04011.19
5.2.70.0070.03711.10
5.2.60.0070.03711.05
5.2.50.0030.04311.18
5.2.40.0130.03710.84
5.2.30.0070.05010.80
5.2.20.0000.04310.87
5.2.10.0070.04011.07
5.2.00.0070.03710.71
5.1.60.0030.03310.04
5.1.50.0070.0339.84
5.1.40.0070.03310.01
5.1.30.0100.04310.50
5.1.20.0100.03010.52
5.1.10.0070.03310.30
5.1.00.0100.04310.13
5.0.50.0070.0278.59
5.0.40.0070.0238.44
5.0.30.0030.0408.15
5.0.20.0000.0308.22
5.0.10.0030.0278.26
5.0.00.0070.0538.00
4.4.90.0070.0275.78
4.4.80.0030.0205.78
4.4.70.0030.0235.79
4.4.60.0030.0235.75
4.4.50.0000.0235.82
4.4.40.0000.0375.76
4.4.30.0100.0135.78
4.4.20.0000.0335.80
4.4.10.0030.0205.89
4.4.00.0000.0375.81
4.3.110.0070.0175.71
4.3.100.0030.0305.68
4.3.90.0000.0205.68
4.3.80.0030.0305.66
4.3.70.0000.0305.69
4.3.60.0030.0205.81
4.3.50.0030.0205.64
4.3.40.0030.0305.77
4.3.30.0000.0235.57
4.3.20.0000.0235.57
4.3.10.0000.0235.57
4.3.00.0130.01714.47

preferences:
143.81 ms | 1394 KiB | 7 Q