3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AO extends ArrayObject { private $p = 'val1'; public $pp = 'val2'; } var_dump( (array) new AO; );

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.350.0110.03412.04
5.4.340.0090.03412.04
5.4.320.0060.03812.52
5.4.310.0050.03812.52
5.4.300.0060.03712.52
5.4.290.0080.03612.52
5.4.280.0040.03812.41
5.4.270.0080.03912.41
5.4.260.0070.04312.41
5.4.250.0070.03912.41
5.4.240.0070.03512.41
5.4.230.0050.04112.40
5.4.220.0080.04512.41
5.4.210.0080.03912.41
5.4.200.0050.03912.41
5.4.190.0140.03712.40
5.4.180.0080.03612.40
5.4.170.0110.03612.41
5.4.160.0090.03812.40
5.4.150.0030.04312.40
5.4.140.0080.04612.09
5.4.130.0090.04412.07
5.4.120.0030.05012.04
5.4.110.0070.05312.04
5.4.100.0130.05912.04
5.4.90.0150.07912.03
5.4.80.0180.08512.03
5.4.70.0080.04712.02
5.4.60.0040.04712.02
5.4.50.0090.06712.03
5.4.40.0130.07012.01
5.4.30.0140.06012.02
5.4.20.0110.04712.00
5.4.10.0060.03812.01
5.4.00.0040.03911.50
5.3.290.0100.03612.80
5.3.280.0070.04112.71
5.3.270.0090.04312.72
5.3.260.0090.04712.72
5.3.250.0110.05012.72
5.3.240.0120.04012.72
5.3.230.0100.03912.71
5.3.220.0260.08212.68
5.3.210.0070.04412.68
5.3.200.0080.03712.68
5.3.190.0090.04312.68
5.3.180.0050.04012.67
5.3.170.0110.03712.67
5.3.160.0080.04112.67
5.3.150.0080.03812.67
5.3.140.0050.04412.66
5.3.130.0120.03712.66
5.3.120.0080.04212.66
5.3.110.0070.04212.66
5.3.100.0150.06112.13
5.3.90.0120.05112.11
5.3.80.0080.03812.10
5.3.70.0060.04112.10
5.3.60.0040.04212.08
5.3.50.0120.04412.03
5.3.40.0110.04712.03
5.3.30.0070.05011.98
5.3.20.0090.04511.77
5.3.10.0090.04711.74
5.3.00.0080.05011.72
5.2.170.0050.0469.22
5.2.160.0100.0389.21
5.2.150.0070.0419.22
5.2.140.0060.0419.21
5.2.130.0040.0419.18
5.2.120.0070.0409.18
5.2.110.0090.0389.19
5.2.100.0090.0369.18
5.2.90.0080.0379.18
5.2.80.0090.0389.18
5.2.70.0080.0399.18
5.2.60.0110.0359.14
5.2.50.0080.0399.10
5.2.40.0070.0369.08
5.2.30.0090.0359.05
5.2.20.0050.0359.05
5.2.10.0060.0378.95
5.2.00.0080.0418.80
5.1.60.0080.0358.09
5.1.50.0060.0358.09
5.1.40.0110.0288.07
5.1.30.0050.0358.42
5.1.20.0050.0328.44
5.1.10.0070.0278.16
5.1.00.0090.0268.17
5.0.50.0040.0236.64
5.0.40.0020.0226.50
5.0.30.0060.0346.31
5.0.20.0030.0256.28
5.0.10.0040.0256.26
5.0.00.0050.0386.25
4.4.90.0050.0204.78
4.4.80.0050.0204.75
4.4.70.0060.0184.75
4.4.60.0030.0184.75
4.4.50.0040.0174.77
4.4.40.0030.0254.71
4.4.30.0020.0194.75
4.4.20.0020.0174.84
4.4.10.0030.0194.85
4.4.00.0030.0314.76
4.3.110.0040.0194.67
4.3.100.0020.0184.66
4.3.90.0020.0184.63
4.3.80.0040.0274.58
4.3.70.0030.0164.63
4.3.60.0050.0164.63
4.3.50.0070.0164.63
4.3.40.0040.0304.54
4.3.30.0040.0153.30
4.3.20.0010.0173.28
4.3.10.0020.0183.23
4.3.00.0070.0276.91

preferences:
143.55 ms | 1398 KiB | 7 Q