3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); $d=new DateTime(); echo $d->format('d/m/Y') $d = (array)$d; $d['test']=3; var_dump(json_encode($d));

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.290.0060.05212.50
5.4.280.0090.04512.39
5.4.270.0080.03612.39
5.4.260.0080.03612.39
5.4.250.0070.03912.39
5.4.240.0060.03612.39
5.4.230.0070.03712.39
5.4.220.0110.05012.39
5.4.210.0120.05912.38
5.4.200.0070.04812.39
5.4.190.0090.03512.38
5.4.180.0080.05312.38
5.4.170.0090.05312.39
5.4.160.0080.03612.39
5.4.150.0090.03412.38
5.4.140.0090.03512.07
5.4.130.0070.04912.05
5.4.120.0070.04012.02
5.4.110.0060.03812.02
5.4.100.0060.04012.01
5.4.90.0160.06412.02
5.4.80.0070.05112.02
5.4.70.0080.04412.01
5.4.60.0070.03512.02
5.4.50.0070.03512.01
5.4.40.0070.03512.00
5.4.30.0070.03412.00
5.4.20.0060.03611.99
5.4.10.0070.03611.99
5.4.00.0090.03411.48
5.3.280.0080.05212.71
5.3.270.0100.03812.73
5.3.260.0120.05312.71
5.3.250.0060.05812.72
5.3.240.0100.03712.71
5.3.230.0060.05512.71
5.3.220.0100.05812.68
5.3.210.0130.05712.68
5.3.200.0090.06512.68
5.3.190.0070.04012.68
5.3.180.0100.05312.68
5.3.170.0100.05212.67
5.3.160.0150.05412.68
5.3.150.0080.03712.68
5.3.140.0060.03612.66
5.3.130.0070.03812.66
5.3.120.0040.04112.66
5.3.110.0090.03612.66
5.3.100.0050.03912.12
5.3.90.0060.03712.08
5.3.80.0090.03412.08
5.3.70.0070.03612.08
5.3.60.0060.04112.06
5.3.50.0090.03512.00
5.3.40.0060.04012.00
5.3.30.0100.03311.95
5.3.20.0070.03611.73
5.3.10.0040.03911.70
5.3.00.0070.03611.69
5.2.170.0040.0339.19
5.2.160.0070.0309.19
5.2.150.0060.0309.18
5.2.140.0050.0339.18
5.2.130.0070.0309.14
5.2.120.0080.0289.14
5.2.110.0090.0299.14
5.2.100.0050.0369.14
5.2.90.0070.0419.14
5.2.80.0100.0399.14
5.2.70.0110.0309.14
5.2.60.0110.0499.09
5.2.50.0100.0309.06
5.2.40.0100.0679.04
5.2.30.0130.0679.02
5.2.20.0140.0609.00
5.2.10.0080.0518.93
5.2.00.0160.0768.78
5.1.60.0090.0388.07
5.1.50.0150.0318.07
5.1.40.0090.0358.05
5.1.30.0110.0388.40
5.1.20.0090.0388.41
5.1.10.0060.0288.15
5.1.00.0070.0288.14
5.0.50.0100.0346.62
5.0.40.0170.0526.48
5.0.30.0020.0376.30
5.0.20.0070.0476.27
5.0.10.0050.0286.24
5.0.00.0090.0506.23
4.4.90.0050.0244.77
4.4.80.0050.0224.75
4.4.70.0080.0204.76
4.4.60.0050.0194.76
4.4.50.0050.0234.77
4.4.40.0040.0344.71
4.4.30.0040.0214.76
4.4.20.0050.0154.85
4.4.10.0030.0234.85
4.4.00.0030.0344.76
4.3.110.0040.0164.67
4.3.100.0060.0204.67
4.3.90.0060.0194.64
4.3.80.0060.0244.59
4.3.70.0020.0174.63
4.3.60.0060.0204.63
4.3.50.0030.0234.63
4.3.40.0040.0334.54
4.3.30.0050.0203.29
4.3.20.0070.0223.27
4.3.10.0030.0173.23
4.3.00.0130.0207.37

preferences:
139.97 ms | 1394 KiB | 7 Q