3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function getClass() { return __CLASS__; } } $bar = new Foo(); $b = $bar->getClass(); var_dump($bar instanceof $b;

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.120.0170.04720.91
5.6.110.0200.07721.00
5.6.100.0270.06321.01
5.6.90.0100.04721.12
5.6.80.0100.07020.38
5.5.280.0100.08020.77
5.5.270.0100.08320.75
5.5.260.0070.06720.77
5.5.250.0130.06720.59
5.5.240.0030.03020.26
5.4.440.0930.05319.38
5.4.430.0630.06319.47
5.4.420.0770.05719.33
5.4.410.0970.06319.04
5.4.400.0870.05719.15
5.4.390.0600.06019.14
5.4.380.0700.05319.22
5.4.370.0200.05319.16
5.4.360.0130.05319.30
5.4.350.0500.06019.05
5.4.340.0930.05019.22
5.4.320.0870.06719.30
5.4.310.0270.05719.03
5.4.300.0170.06719.01
5.4.290.0330.08019.12
5.4.280.0670.05319.29
5.4.270.0330.05719.05
5.4.260.0100.05318.84
5.4.250.0100.05019.21
5.4.240.0630.05719.27
5.4.230.0800.04019.28
5.4.220.0530.05019.05
5.4.210.0800.05319.29
5.4.200.0630.04716.89
5.4.190.0700.06019.00
5.4.180.0930.04719.28
5.4.170.0570.06019.16
5.4.160.0930.05018.97
5.4.150.0900.05319.27
5.4.140.0830.04316.57
5.4.130.0830.05716.59
5.4.120.1130.04716.57
5.4.110.1170.04716.46
5.4.100.0970.06316.61
5.4.90.0900.05016.57
5.4.80.0930.05316.35
5.4.70.0730.05316.43
5.4.60.0830.05016.30
5.4.50.0870.05016.37
5.4.40.1030.04716.48
5.4.30.0900.04716.29
5.4.20.0730.06316.29
5.4.10.0900.05716.31
5.4.00.0870.05715.79
5.3.290.0770.05714.68
5.3.280.0870.06314.67
5.3.270.0930.05014.68
5.3.260.1100.05314.51
5.3.250.1130.05014.61
5.3.240.1170.04714.61
5.3.230.0830.05714.58
5.3.220.1000.05314.45
5.3.210.0870.05714.59
5.3.200.0900.06014.45
5.3.190.0830.05014.43
5.3.180.0870.05314.78
5.3.170.1070.04714.57
5.3.160.1030.04314.79
5.3.150.0830.06714.47
5.3.140.0900.06314.57
5.3.130.0870.06014.38
5.3.120.1070.07314.60
5.3.110.0930.05714.60
5.3.100.0900.05714.18
5.3.90.0900.05713.99
5.3.80.1000.05014.03
5.3.70.1070.05313.93
5.3.60.1000.04714.07
5.3.50.0870.04713.87
5.3.40.0800.06013.84
5.3.30.1130.05013.99
5.3.20.1070.06313.59
5.3.10.0670.05013.67
5.3.00.1070.06313.72
5.2.170.0830.04311.03
5.2.160.0770.03711.23
5.2.150.0770.04011.01
5.2.140.0700.05011.37
5.2.130.0600.04011.02
5.2.120.0670.04311.01
5.2.110.0800.04711.02
5.2.100.0670.04311.01
5.2.90.0600.05711.00
5.2.80.0700.05011.18
5.2.70.0670.04711.10
5.2.60.0670.05010.98
5.2.50.0670.04711.16
5.2.40.0600.04311.08
5.2.30.0400.04010.98
5.2.20.0570.04010.88
5.2.10.0730.04010.92
5.2.00.0630.03310.86
5.1.60.0630.0339.92
5.1.50.0570.0379.91
5.1.40.0530.0379.82
5.1.30.0600.02310.38
5.1.20.0530.03710.57
5.1.10.0630.03010.22
5.1.00.0400.04710.13
5.0.50.0370.0278.46
5.0.40.0270.0278.49
5.0.30.0230.0478.13
5.0.20.0370.0208.18
5.0.10.0230.0278.20
5.0.00.0270.0408.17
4.4.90.0300.0235.85
4.4.80.0230.0235.82
4.4.70.0470.0205.85
4.4.60.0300.0305.84
4.4.50.0270.0235.89
4.4.40.0130.0405.88
4.4.30.0300.0175.83
4.4.20.0370.0135.82
4.4.10.0270.0205.91
4.4.00.0330.0335.91
4.3.110.0170.0305.79
4.3.100.0330.0135.70
4.3.90.0230.0235.75
4.3.80.0230.0375.79
4.3.70.0230.0205.74
4.3.60.0330.0175.71
4.3.50.0270.0235.66
4.3.40.0300.0305.75
4.3.30.0100.0204.55
4.3.20.0070.0274.53
4.3.10.0000.0234.48
4.3.00.0000.0237.12

preferences:
141.65 ms | 1394 KiB | 7 Q