3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode("a"=>"b"); echo "test"; ?>

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.0050.03912.36
5.4.250.0060.03812.36
5.4.240.0060.04012.36
5.4.230.0090.04512.35
5.4.220.0080.03512.35
5.4.210.0120.03112.35
5.4.200.0060.04712.35
5.4.190.0060.03912.35
5.4.180.0070.03912.35
5.4.170.0070.03512.36
5.4.160.0040.04512.35
5.4.150.0030.03912.35
5.4.140.0070.03512.04
5.4.130.0040.04312.02
5.4.120.0040.04211.98
5.4.110.0060.04111.98
5.4.100.0060.04011.98
5.4.90.0100.03511.98
5.4.80.0070.03811.98
5.4.70.0030.04011.98
5.4.60.0090.03511.98
5.4.50.0080.04511.98
5.4.40.0080.03311.96
5.4.30.0060.03611.96
5.4.20.0080.04411.95
5.4.10.0090.04511.96
5.4.00.0050.04411.45
5.3.280.0070.05012.71
5.3.270.0050.04612.72
5.3.260.0080.04212.71
5.3.250.0060.04012.72
5.3.240.0080.05312.72
5.3.230.0110.04612.71
5.3.220.0060.04112.68
5.3.210.0090.04312.68
5.3.200.0060.03812.68
5.3.190.0040.04512.68
5.3.180.0080.03412.67
5.3.170.0080.03512.67
5.3.160.0050.03912.67
5.3.150.0070.03812.67
5.3.140.0080.03612.66
5.3.130.0070.03812.66
5.3.120.0090.04112.66
5.3.110.0080.04112.66
5.3.100.0060.04012.12
5.3.90.0030.04212.08
5.3.80.0070.03612.08
5.3.70.0080.03512.07
5.3.60.0050.04112.06
5.3.50.0070.03912.00
5.3.40.0060.03812.00
5.3.30.0040.03811.94
5.3.20.0050.03811.69
5.3.10.0060.03511.65
5.3.00.0050.03811.64
5.2.170.0080.0299.14
5.2.160.0040.0319.14
5.2.150.0070.0309.14
5.2.140.0060.0309.14
5.2.130.0070.0279.10
5.2.120.0050.0289.10
5.2.110.0040.0319.10
5.2.100.0050.0309.10
5.2.90.0050.0309.09
5.2.80.0030.0329.09
5.2.70.0040.0339.08
5.2.60.0060.0319.05
5.2.50.0080.0309.02
5.2.40.0060.0298.99
5.2.30.0050.0328.97
5.2.20.0080.0278.96
5.2.10.0050.0288.88
5.2.00.0070.0388.74
5.1.60.0080.0238.03
5.1.50.0040.0268.03
5.1.40.0060.0238.01
5.1.30.0080.0268.36
5.1.20.0030.0288.39
5.1.10.0040.0278.11
5.1.00.0050.0258.11
5.0.50.0030.0226.58
5.0.40.0070.0176.45
5.0.30.0050.0386.26
5.0.20.0030.0226.23
5.0.10.0040.0216.20
5.0.00.0030.0316.20
4.4.90.0030.0154.78
4.4.80.0000.0184.75
4.4.70.0050.0134.75
4.4.60.0030.0164.76
4.4.50.0040.0154.77
4.4.40.0040.0254.71
4.4.30.0030.0164.76
4.4.20.0030.0164.84
4.4.10.0080.0244.85
4.4.00.0050.0254.76
4.3.110.0040.0314.67
4.3.100.0030.0224.66
4.3.90.0040.0194.63
4.3.80.0030.0324.59
4.3.70.0030.0194.63
4.3.60.0040.0204.63
4.3.50.0070.0174.63
4.3.40.0040.0324.54
4.3.30.0030.0203.27
4.3.20.0040.0193.25
4.3.10.0010.0223.21
4.3.00.0030.0237.08

preferences:
147.09 ms | 1394 KiB | 7 Q