3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User{ public function getPassport() { return; } public function getDrivingLicence() { return; } } $user = new User; if (!$user->getPassport() instanceof \stdClass && !$user->getDrivingLicence() instanceof instanceof \stdClass) { echo 'done'; }

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.350.0040.04612.04
5.4.340.0110.03112.03
5.4.320.0060.04412.51
5.4.310.0160.04712.51
5.4.300.0160.05112.52
5.4.290.0140.04512.51
5.4.280.0110.03712.41
5.4.270.0080.03512.41
5.4.260.0070.03912.41
5.4.250.0060.04512.41
5.4.240.0090.03312.41
5.4.230.0050.04012.40
5.4.220.0060.03812.40
5.4.210.0080.03812.40
5.4.200.0100.03512.40
5.4.190.0080.03712.40
5.4.180.0040.04112.40
5.4.170.0050.04212.41
5.4.160.0120.05912.40
5.4.150.0060.04012.40
5.4.140.0210.07912.09
5.4.130.0110.04412.07
5.4.120.0130.08412.03
5.4.110.0150.05112.03
5.4.100.0120.07112.04
5.4.90.0210.08312.04
5.4.80.0100.05112.04
5.4.70.0070.03712.03
5.4.60.0060.04512.02
5.4.50.0060.04212.03
5.4.40.0060.03612.02
5.4.30.0080.03612.02
5.4.20.0060.04012.01
5.4.10.0140.04812.01
5.4.00.0090.03711.50
5.3.290.0070.04512.80
5.3.280.0080.04212.71
5.3.270.0050.04812.72
5.3.260.0070.04712.72
5.3.250.0070.04912.71
5.3.240.0090.03412.72
5.3.230.0050.04512.70
5.3.220.0040.04412.68
5.3.210.0080.04012.68
5.3.200.0080.03612.68
5.3.190.0110.05212.67
5.3.180.0060.05412.68
5.3.170.0080.05212.67
5.3.160.0080.05212.68
5.3.150.0100.05112.67
5.3.140.0140.07212.66
5.3.130.0090.05012.66
5.3.120.0070.05112.65
5.3.110.0090.04912.66
5.3.100.0070.04812.14
5.3.90.0060.05112.12
5.3.80.0050.03912.11
5.3.70.0120.03712.11
5.3.60.0110.03212.09
5.3.50.0050.03612.04
5.3.40.0060.03712.04
5.3.30.0040.04112.00
5.3.20.0070.04511.78
5.3.10.0060.04911.75
5.3.00.0100.03811.74
5.2.170.0150.0649.23
5.2.160.0150.0639.23
5.2.150.0120.0699.23
5.2.140.0160.0989.22
5.2.130.0360.0729.19
5.2.120.0110.0559.18
5.2.110.0150.0699.19
5.2.100.0060.0489.18
5.2.90.0190.0539.18
5.2.80.0100.0559.18
5.2.70.0220.0869.18
5.2.60.0230.0699.14
5.2.50.0070.0529.10
5.2.40.0110.0559.08
5.2.30.0190.0819.05
5.2.20.0120.0749.04
5.2.10.0090.0388.95
5.2.00.0070.0498.82
5.1.60.0070.0308.10
5.1.50.0070.0338.09
5.1.40.0050.0338.07
5.1.30.0050.0348.43
5.1.20.0110.0328.44
5.1.10.0080.0408.17
5.1.00.0070.0458.17
5.0.50.0100.0216.65
5.0.40.0060.0256.51
5.0.30.0030.0436.33
5.0.20.0060.0236.29
5.0.10.0050.0286.26
5.0.00.0170.0476.25
4.4.90.0220.0304.78
4.4.80.0090.0194.75
4.4.70.0060.0244.76
4.4.60.0060.0284.76
4.4.50.0050.0234.77
4.4.40.0040.0404.71
4.4.30.0180.0434.76
4.4.20.0060.0224.85
4.4.10.0050.0274.84
4.4.00.0030.0394.76
4.3.110.0060.0244.67
4.3.100.0070.0244.66
4.3.90.0040.0254.64
4.3.80.0080.0354.58
4.3.70.0040.0224.63
4.3.60.0040.0204.63
4.3.50.0070.0204.63
4.3.40.0070.0314.54
4.3.30.0020.0243.30
4.3.20.0040.0223.28
4.3.10.0040.0213.23
4.3.00.0000.0237.38

preferences:
143.48 ms | 1394 KiB | 7 Q