3v4l.org

run code in 300+ PHP versions simultaneously
<?php class amICrazy() { public static $const = 1; public function __construct() { echo self::$const; self::$const++; } } $a = new amICrazy(); $b = new amICrazy();

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.270.0060.03512.38
5.4.260.0040.03912.38
5.4.250.0070.03612.37
5.4.240.0050.03612.37
5.4.230.0070.03612.37
5.4.220.0060.03512.37
5.4.210.0020.03912.37
5.4.200.0060.03712.37
5.4.190.0120.03012.36
5.4.180.0070.03512.36
5.4.170.0060.03512.37
5.4.160.0110.03412.36
5.4.150.0060.03912.36
5.4.140.0090.04312.05
5.4.130.0050.04012.03
5.4.120.0040.04011.99
5.4.110.0030.03911.99
5.4.100.0070.03811.99
5.4.90.0050.04011.99
5.4.80.0060.04611.99
5.4.70.0050.03711.99
5.4.60.0030.03811.98
5.4.50.0080.03611.98
5.4.40.0060.03411.98
5.4.30.0050.03511.97
5.4.20.0060.03411.97
5.4.10.0050.03611.98
5.4.00.0050.03711.46
5.3.280.0030.04212.70
5.3.270.0080.03912.73
5.3.260.0040.04112.71
5.3.250.0050.03712.72
5.3.240.0030.04012.72
5.3.230.0060.03712.71
5.3.220.0040.03912.68
5.3.210.0060.03812.68
5.3.200.0090.03512.68
5.3.190.0040.04612.68
5.3.180.0040.03912.68
5.3.170.0060.03612.66
5.3.160.0080.03412.67
5.3.150.0070.03512.67
5.3.140.0090.03312.66
5.3.130.0060.04212.66
5.3.120.0070.03712.66
5.3.110.0070.03712.66
5.3.100.0080.03412.12
5.3.90.0070.03512.09
5.3.80.0020.04112.08
5.3.70.0060.04012.08
5.3.60.0070.03412.06
5.3.50.0050.03612.00
5.3.40.0100.03412.00
5.3.30.0050.03811.94
5.3.20.0060.03711.72
5.3.10.0050.03511.68
5.3.00.0060.04311.66
5.2.170.0030.0319.17
5.2.160.0060.0279.17
5.2.150.0030.0339.17
5.2.140.0040.0319.16
5.2.130.0030.0309.13
5.2.120.0030.0309.13
5.2.110.0030.0309.14
5.2.100.0040.0289.14
5.2.90.0030.0309.13
5.2.80.0030.0319.12
5.2.70.0040.0299.12
5.2.60.0060.0289.08
5.2.50.0050.0299.05
5.2.40.0070.0269.02
5.2.30.0030.0308.99
5.2.20.0060.0268.98
5.2.10.0060.0288.90
5.2.00.0070.0268.75
5.1.60.0060.0218.04
5.1.50.0060.0228.04
5.1.40.0040.0248.03
5.1.30.0040.0268.37
5.1.20.0060.0318.40
5.1.10.0060.0258.13
5.1.00.0050.0258.12
5.0.50.0030.0216.59
5.0.40.0030.0196.45
5.0.30.0060.0286.27
5.0.20.0050.0216.24
5.0.10.0020.0246.21
5.0.00.0050.0316.20
4.4.90.0050.0164.77
4.4.80.0050.0194.76
4.4.70.0040.0204.76
4.4.60.0070.0174.76
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0000.0184.84
4.4.10.0010.0174.85
4.4.00.0040.0234.76
4.3.110.0020.0174.67
4.3.100.0030.0144.66
4.3.90.0010.0164.64
4.3.80.0010.0264.58
4.3.70.0020.0154.63
4.3.60.0030.0134.63
4.3.50.0030.0154.63
4.3.40.0050.0214.54
4.3.30.0020.0153.29
4.3.20.0020.0153.27
4.3.10.0040.0143.23
4.3.00.0000.0236.78

preferences:
138.79 ms | 1394 KiB | 7 Q