3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function test() { echo static instanceof B ? 'B' : 'A'; } } class B extends A { } $b = new B; $b->test();

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.150.0120.04012.36
5.4.140.0120.04112.06
5.4.130.0140.03912.04
5.4.120.0120.03912.00
5.4.110.0120.04012.00
5.4.100.0140.04812.00
5.4.90.0150.03712.00
5.4.80.0170.06012.00
5.4.70.0130.04212.00
5.4.60.0130.04312.00
5.4.50.0150.03812.00
5.4.40.0100.04011.98
5.4.30.0110.04111.98
5.4.20.0100.04111.98
5.4.10.0120.04011.98
5.4.00.0110.04411.47
5.3.250.0050.04212.71
5.3.240.0140.04012.72
5.3.230.0140.04112.71
5.3.220.0130.04112.68
5.3.210.0150.04112.68
5.3.200.0160.04812.68
5.3.190.0110.04312.68
5.3.180.0170.03612.67
5.3.170.0120.04112.67
5.3.160.0130.04112.67
5.3.150.0200.05412.67
5.3.140.0120.04112.66
5.3.130.0120.04212.66
5.3.120.0120.04212.66
5.3.110.0130.04112.66
5.3.100.0110.04212.12
5.3.90.0120.04112.09
5.3.80.0110.04212.08
5.3.70.0110.04212.07
5.3.60.0110.04112.06
5.3.50.0140.04912.00
5.3.40.0130.04212.01
5.3.30.0170.04411.97
5.3.20.0130.03811.74
5.3.10.0100.04011.70
5.3.00.0110.03911.69
5.2.170.0110.0339.19
5.2.160.0100.0339.19
5.2.150.0090.0339.19
5.2.140.0100.0329.19
5.2.130.0090.0339.15
5.2.120.0100.0319.15
5.2.110.0070.0359.15
5.2.100.0100.0329.15
5.2.90.0080.0339.15
5.2.80.0100.0329.14
5.2.70.0120.0419.14
5.2.60.0090.0339.10
5.2.50.0090.0339.07
5.2.40.0080.0349.04
5.2.30.0080.0349.02
5.2.20.0110.0419.01
5.2.10.0110.0308.92
5.2.00.0100.0308.78
5.1.60.0080.0268.06
5.1.50.0090.0288.06
5.1.40.0070.0288.04
5.1.30.0140.0448.40
5.1.20.0070.0318.42
5.1.10.0090.0298.14
5.1.00.0090.0288.13
5.0.50.0060.0256.61
5.0.40.0070.0216.48
5.0.30.0090.0326.29
5.0.20.0080.0216.26
5.0.10.0110.0286.24
5.0.00.0080.0336.22
4.4.90.0060.0164.78
4.4.80.0050.0184.75
4.4.70.0070.0164.75
4.4.60.0060.0174.76
4.4.50.0060.0174.77
4.4.40.0060.0274.71
4.4.30.0050.0204.76
4.4.20.0080.0164.84
4.4.10.0050.0184.85
4.4.00.0060.0274.76
4.3.110.0050.0184.67
4.3.100.0050.0164.66
4.3.90.0040.0184.63
4.3.80.0090.0424.58
4.3.70.0040.0184.63
4.3.60.0050.0164.63
4.3.50.0040.0184.63
4.3.40.0050.0264.54
4.3.30.0030.0183.31
4.3.20.0030.0183.29
4.3.10.0030.0183.25
4.3.00.0100.0237.21

preferences:
152.19 ms | 1386 KiB | 7 Q