3v4l.org

run code in 300+ PHP versions simultaneously
(<?php class A { function foo() { echo "A::foo\r\n"; } } class B extends A { function foo() { echo "B::foo\r\n"; } } $a = new A; $b = new B; $a->foo(); $b->foo(); $casted = (A) $b; $casted->foo();

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.0100.04212.52
5.4.310.0060.04012.52
5.4.300.0070.03612.52
5.4.290.0070.04012.51
5.4.280.0120.03612.41
5.4.270.0080.03812.41
5.4.260.0060.04512.41
5.4.250.0110.03612.41
5.4.240.0040.04312.41
5.4.230.0070.03712.40
5.4.220.0050.03712.40
5.4.210.0080.03412.40
5.4.200.0060.03712.40
5.4.190.0090.03512.40
5.4.180.0050.04612.39
5.4.170.0120.04312.40
5.4.160.0070.03912.40
5.4.150.0070.03612.40
5.4.140.0120.04212.09
5.4.130.0080.03412.07
5.4.120.0110.03112.03
5.4.110.0050.03712.04
5.4.100.0110.04312.03
5.4.90.0080.04512.03
5.4.80.0060.04612.03
5.4.70.0080.03912.03
5.4.60.0090.03512.02
5.4.50.0090.03412.02
5.4.40.0030.04112.02
5.4.30.0090.03512.01
5.4.20.0090.04212.00
5.4.10.0060.04012.01
5.4.00.0080.03911.50
5.3.290.0060.04212.80
5.3.280.0030.04112.71
5.3.270.0050.04212.73
5.3.260.0070.04112.72
5.3.250.0050.03912.71
5.3.240.0060.04012.71
5.3.230.0090.04512.71
5.3.220.0060.04412.68
5.3.210.0060.04112.68
5.3.200.0110.04012.68
5.3.190.0100.04012.68
5.3.180.0090.03912.67
5.3.170.0100.03212.67
5.3.160.0050.03712.67
5.3.150.0030.04012.68
5.3.140.0070.03612.66
5.3.130.0030.04712.66
5.3.120.0090.04312.66
5.3.110.0070.03812.66
5.3.100.0070.03612.13
5.3.90.0050.03612.11
5.3.80.0060.03512.10
5.3.70.0090.03712.10
5.3.60.0080.04212.08
5.3.50.0040.04012.03
5.3.40.0090.04012.04
5.3.30.0120.03511.98
5.3.20.0070.04311.77
5.3.10.0060.03711.73
5.3.00.0050.03811.72
5.2.170.0070.0359.23
5.2.160.0070.0369.23
5.2.150.0060.0359.23
5.2.140.0030.0339.23
5.2.130.0040.0309.18
5.2.120.0030.0319.18
5.2.110.0040.0309.19
5.2.100.0060.0289.18
5.2.90.0060.0279.18
5.2.80.0070.0299.18
5.2.70.0080.0319.18
5.2.60.0030.0389.13
5.2.50.0060.0389.10
5.2.40.0070.0329.08
5.2.30.0060.0329.06
5.2.20.0070.0349.04
5.2.10.0090.0288.95
5.2.00.0060.0298.81
5.1.60.0070.0278.10
5.1.50.0050.0308.09
5.1.40.0050.0278.08
5.1.30.0080.0288.43
5.1.20.0080.0258.45
5.1.10.0090.0298.18
5.1.00.0030.0268.17
5.0.50.0030.0216.65
5.0.40.0020.0216.51
5.0.30.0040.0306.32
5.0.20.0060.0176.29
5.0.10.0030.0236.27
5.0.00.0060.0376.25
4.4.90.0020.0164.78
4.4.80.0020.0164.76
4.4.70.0030.0164.75
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0030.0244.71
4.4.30.0010.0204.76
4.4.20.0050.0144.85
4.4.10.0040.0204.85
4.4.00.0040.0274.76
4.3.110.0030.0154.67
4.3.100.0050.0164.66
4.3.90.0020.0154.64
4.3.80.0010.0324.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0020.0244.53
4.3.30.0020.0163.30
4.3.20.0020.0163.29
4.3.10.0020.0173.24
4.3.00.0000.01318.42

preferences:
142.94 ms | 1394 KiB | 7 Q