3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b = 0; public function __construct() { $this>costm=0; } }

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.320.0070.03512.51
5.4.310.0040.04012.51
5.4.300.0090.03512.52
5.4.290.0060.03912.51
5.4.280.0090.03812.41
5.4.270.0100.04012.41
5.4.260.0100.03612.41
5.4.250.0090.03612.41
5.4.240.0050.03912.41
5.4.230.0080.03812.40
5.4.220.0070.03512.40
5.4.210.0080.03412.40
5.4.200.0050.04012.40
5.4.190.0110.03412.39
5.4.180.0050.04612.40
5.4.170.0100.04012.40
5.4.160.0080.05012.40
5.4.150.0070.05412.40
5.4.140.0080.03912.09
5.4.130.0090.04512.07
5.4.120.0090.04712.04
5.4.110.0070.04412.03
5.4.100.0100.03212.03
5.4.90.0050.04412.03
5.4.80.0080.03712.03
5.4.70.0080.03512.02
5.4.60.0070.03712.03
5.4.50.0080.03512.02
5.4.40.0130.03012.02
5.4.30.0080.03912.02
5.4.20.0060.04812.00
5.4.10.0090.04712.00
5.4.00.0100.03811.51
5.3.290.0140.04812.80
5.3.280.0060.04712.71
5.3.270.0080.04712.72
5.3.260.0120.03812.71
5.3.250.0110.03912.71
5.3.240.0110.03912.72
5.3.230.0070.04212.71
5.3.220.0070.04212.68
5.3.210.0110.04212.68
5.3.200.0180.03012.68
5.3.190.0150.03812.68
5.3.180.0160.03212.68
5.3.170.0080.04112.67
5.3.160.0090.04912.67
5.3.150.0160.04212.67
5.3.140.0110.04612.66
5.3.130.0050.05512.66
5.3.120.0080.03912.66
5.3.110.0070.04112.66
5.3.100.0070.04112.12
5.3.90.0070.03912.10
5.3.80.0070.03512.09
5.3.70.0070.03512.09
5.3.60.0050.03812.08
5.3.50.0080.03912.03
5.3.40.0070.04512.03
5.3.30.0100.04411.98
5.3.20.0110.05211.76
5.3.10.0080.04311.73
5.3.00.0060.03811.72
5.2.170.0090.0269.23
5.2.160.0040.0319.22
5.2.150.0100.0269.23
5.2.140.0070.0299.22
5.2.130.0070.0279.18
5.2.120.0050.0319.18
5.2.110.0050.0299.19
5.2.100.0040.0349.18
5.2.90.0040.0329.18
5.2.80.0020.0339.18
5.2.70.0060.0309.18
5.2.60.0080.0319.13
5.2.50.0070.0309.09
5.2.40.0050.0289.07
5.2.30.0040.0309.05
5.2.20.0020.0309.04
5.2.10.0050.0288.95
5.2.00.0040.0338.81
5.1.60.0060.0268.09
5.1.50.0020.0318.08
5.1.40.0030.0258.07
5.1.30.0000.0308.41
5.1.20.0040.0268.45
5.1.10.0010.0288.16
5.1.00.0020.0278.16
5.0.50.0020.0216.64
5.0.40.0020.0206.50
5.0.30.0080.0276.32
5.0.20.0070.0156.28
5.0.10.0040.0186.26
5.0.00.0040.0296.25
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0040.0334.70
4.4.30.0000.0194.76
4.4.20.0040.0144.85
4.4.10.0030.0154.85
4.4.00.0030.0274.75
4.3.110.0010.0174.67
4.3.100.0030.0144.66
4.3.90.0040.0134.64
4.3.80.0050.0224.58
4.3.70.0010.0164.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0000.0183.28
4.3.10.0030.0153.23
4.3.00.0030.01718.41

preferences:
143.66 ms | 1394 KiB | 7 Q