3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AbstractPlatform {} class A { public function convertToDatabaseValue($value, AbstractPlatform $platform, $value) { return $value; } } class B extends A { public function convertToDatabaseValue($value, AbstractPlatform $platform) { echo "OK"; } } $b = new B(); $b->convertToDatabaseValue("test", new AbstractPlatform(), "hop");

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.6.280.0100.06721.16
5.6.210.0100.08020.48
5.6.200.0030.08318.16
5.6.190.0100.08020.41
5.6.180.0370.07320.57
5.6.170.0300.07020.44
5.6.160.0130.07720.47
5.6.150.0100.07718.27
5.6.140.0100.07318.14
5.6.130.0070.08718.14
5.6.120.0030.08020.96
5.6.110.0170.07020.90
5.6.100.0100.03721.05
5.6.90.0170.07720.98
5.6.80.0070.06020.41
5.5.350.0130.03320.54
5.5.340.0230.05017.98
5.5.330.0100.05020.47
5.5.320.0300.04320.30
5.5.310.0230.08320.51
5.5.300.0030.07317.94
5.5.290.0070.03718.00
5.5.280.0200.05320.99
5.5.270.0070.09320.96
5.5.260.0200.07320.68
5.5.250.0100.04020.79
5.5.240.0170.06720.38
5.4.450.0230.04319.48
5.4.440.0170.03719.34
5.4.430.0130.05719.34
5.4.420.0170.05019.54
5.4.410.0200.04719.45
5.4.400.0100.05719.17
5.4.390.0330.03718.89
5.4.380.0270.05718.70
5.4.370.0270.05318.61
5.4.360.0530.06018.71
5.4.350.0430.06718.71
5.4.340.0230.05318.72
5.4.320.0100.03312.52
5.4.310.0090.04812.51
5.4.300.0070.04312.52
5.4.290.0060.04312.50
5.4.280.0130.04112.40
5.4.270.0080.04912.40
5.4.260.0040.04512.40
5.4.250.0070.04912.40
5.4.240.0070.05112.40
5.4.230.0130.04712.39
5.4.220.0050.05212.39
5.4.210.0080.05112.39
5.4.200.0070.03812.39
5.4.190.0080.03512.39
5.4.180.0090.03412.39
5.4.170.0070.03712.40
5.4.160.0050.03912.39
5.4.150.0060.03812.39
5.4.140.0070.03812.08
5.4.130.0070.04912.07
5.4.120.0010.04612.02
5.4.110.0050.03612.02
5.4.100.0040.03612.02
5.4.90.0080.03512.02
5.4.80.0090.03412.02
5.4.70.0060.03612.02
5.4.60.0040.03612.02
5.4.50.0030.03812.02
5.4.40.0050.03612.00
5.4.30.0130.02912.00
5.4.20.0060.03512.00
5.4.10.0070.03412.00
5.4.00.0080.03511.48
5.3.290.0070.04012.80
5.3.280.0070.03812.71
5.3.270.0060.03912.72
5.3.260.0070.03812.72
5.3.250.0060.03812.72
5.3.240.0070.03612.72
5.3.230.0070.03812.71
5.3.220.0050.03812.68
5.3.210.0070.03812.68
5.3.200.0070.03612.68
5.3.190.0100.03412.68
5.3.180.0060.03812.67
5.3.170.0060.03712.67
5.3.160.0050.03812.67
5.3.150.0050.04112.67
5.3.140.0070.03712.66
5.3.130.0060.03912.66
5.3.120.0060.03912.65
5.3.110.0090.03612.66
5.3.100.0120.03212.13
5.3.90.0070.03612.11
5.3.80.0050.03612.10
5.3.70.0040.03812.10
5.3.60.0060.03712.08
5.3.50.0080.03412.03
5.3.40.0070.03612.03
5.3.30.0060.03511.98
5.3.20.0060.03511.77
5.3.10.0050.03511.73
5.3.00.0070.03511.72
5.2.170.0040.0319.22
5.2.160.0060.0359.23
5.2.150.0030.0329.23
5.2.140.0030.0359.22
5.2.130.0060.0279.18
5.2.120.0040.0309.18
5.2.110.0060.0299.19
5.2.100.0090.0249.19
5.2.90.0030.0309.18
5.2.80.0040.0319.18
5.2.70.0070.0289.18
5.2.60.0060.0299.13
5.2.50.0050.0309.10
5.2.40.0080.0269.08
5.2.30.0070.0289.05
5.2.20.0040.0319.05
5.2.10.0060.0288.95
5.2.00.0050.0298.81
5.1.60.0060.0238.10
5.1.50.0070.0318.09
5.1.40.0060.0268.07
5.1.30.0030.0368.42
5.1.20.0070.0328.45
5.1.10.0070.0288.17
5.1.00.0050.0268.16
5.0.50.0010.0236.65
5.0.40.0030.0196.50
5.0.30.0030.0316.32
5.0.20.0060.0206.29
5.0.10.0020.0216.26
5.0.00.0030.0316.25
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0030.0154.76
4.4.60.0030.0174.75
4.4.50.0030.0154.77
4.4.40.0010.0284.71
4.4.30.0020.0164.75
4.4.20.0020.0174.85
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0040.0154.67
4.3.100.0030.0154.66
4.3.90.0020.0164.64
4.3.80.0010.0264.59
4.3.70.0030.0144.63
4.3.60.0060.0164.63
4.3.50.0020.0164.62
4.3.40.0020.0264.54
4.3.30.0040.0143.30
4.3.20.0030.0143.28
4.3.10.0020.0153.23
4.3.00.0000.01318.16

preferences:
141.41 ms | 1394 KiB | 7 Q