3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'bold' => false, 'color' => array('argb' => 'FF000000'), 'size' => 8 ) echo 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.0070.08018.84
5.4.250.0030.05318.76
5.4.240.0070.05018.89
5.4.230.0130.07018.65
5.4.220.0100.05718.74
5.4.210.0100.07018.94
5.4.200.0000.05718.74
5.4.190.0200.04318.77
5.4.180.0070.05018.93
5.4.170.0070.07018.98
5.4.160.0070.05018.95
5.4.150.0100.05718.98
5.4.140.0100.04716.39
5.4.130.0000.05716.54
5.4.120.0130.04716.53
5.4.110.0170.04716.55
5.4.100.0200.04716.52
5.4.90.0100.04716.48
5.4.80.0070.04716.41
5.4.70.0070.04716.55
5.4.60.0030.05316.38
5.4.50.0070.04716.30
5.4.40.0200.03716.50
5.4.30.0030.05716.29
5.4.20.0000.05316.52
5.4.10.0030.06016.39
5.4.00.0130.04315.83
5.3.280.0030.05314.45
5.3.270.0030.05314.30
5.3.260.0100.04714.63
5.3.250.0030.05314.49
5.3.240.0100.04714.61
5.3.230.0130.04314.61
5.3.220.0130.06714.34
5.3.210.0170.05014.36
5.3.200.0100.07014.34
5.3.190.0100.06714.44
5.3.180.0070.05014.48
5.3.170.0070.06714.26
5.3.160.0100.04714.27
5.3.150.0100.04714.40
5.3.140.0100.06314.60
5.3.130.0030.05714.41
5.3.120.0100.05014.33
5.3.110.0070.05314.64
5.3.100.0070.07014.05
5.3.90.0030.07013.94
5.3.80.0130.05314.04
5.3.70.0030.05314.07
5.3.60.0130.06313.94
5.3.50.0100.06713.65
5.3.40.0070.05013.86
5.3.30.0030.05013.90
5.3.20.0030.05013.39
5.3.10.0100.04713.35
5.3.00.0070.05013.73
5.2.170.0100.05310.89
5.2.160.0000.06311.04
5.2.150.0000.05311.14
5.2.140.0070.05711.02
5.2.130.0070.04011.11
5.2.120.0030.04011.11
5.2.110.0100.05011.11
5.2.100.0100.03311.00
5.2.90.0030.04711.10
5.2.80.0200.04310.85
5.2.70.0000.06010.97
5.2.60.0100.04710.81
5.2.50.0030.06011.02
5.2.40.0070.05010.84
5.2.30.0000.04310.96
5.2.20.0000.04310.96
5.2.10.0130.02710.92
5.2.00.0000.06310.89
5.1.60.0030.0379.91
5.1.50.0030.0509.92
5.1.40.0130.0309.89
5.1.30.0030.05010.27
5.1.20.0070.04710.53
5.1.10.0070.05010.03
5.1.00.0170.04310.02
5.0.50.0130.0278.32
5.0.40.0170.0238.60
5.0.30.0070.0478.27
5.0.20.0000.0438.25
5.0.10.0070.0338.25
5.0.00.0030.0408.07
4.4.90.0000.0235.79
4.4.80.0030.0205.68
4.4.70.0030.0205.76
4.4.60.0070.0175.80
4.4.50.0000.0235.91
4.4.40.0000.0405.80
4.4.30.0100.0135.80
4.4.20.0070.0275.83
4.4.10.0000.0335.86
4.4.00.0100.0275.86
4.3.110.0100.0235.70
4.3.100.0170.0235.72
4.3.90.0000.0205.73
4.3.80.0000.0335.72
4.3.70.0000.0235.75
4.3.60.0000.0205.67
4.3.50.0030.0205.72
4.3.40.0030.0335.65
4.3.30.0000.0235.37
4.3.20.0030.0205.37
4.3.10.0000.0235.37
4.3.00.0130.02014.47

preferences:
138.8 ms | 1398 KiB | 7 Q