3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ancestor { public $publicVar = 'ancestor\'s public var'; static $publicVar = 'ancestor\'s static var'; function publicMethod(){ // is $this is set up if(isset($this)){ echo "publicMethod is in object context"; }else{ echo "publicMethod is in static context"; } } } Ancestor::publicMethod();

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.130.0030.08318.26
5.6.120.0130.03021.02
5.6.110.0000.09020.97
5.6.100.0030.08720.88
5.6.90.0100.06320.95
5.6.80.0170.07720.41
5.5.290.0030.05318.09
5.5.280.0070.05020.79
5.5.270.0070.08320.63
5.5.260.0170.08020.64
5.5.250.0000.04320.49
5.5.240.0100.07320.07
5.4.450.0230.06719.70
5.4.440.0330.06319.57
5.4.430.0400.05019.60
5.4.420.0400.05019.19
5.4.410.0300.06319.48
5.4.400.0300.05719.15
5.4.390.0330.05719.15
5.4.380.0200.04319.13
5.4.370.0130.06019.23
5.4.360.0300.05019.26
5.4.350.0200.06019.13
5.4.340.0070.06318.84
5.4.320.0030.06019.02
5.4.310.0030.06019.26
5.4.300.0100.05019.01
5.4.290.0330.05319.29
5.4.280.0400.05319.00
5.4.270.0330.06019.30
5.4.260.0270.05019.12
5.4.250.0470.04719.30
5.4.240.0130.04719.27
5.4.230.0100.05019.15
5.4.220.0130.05019.37
5.4.210.0270.04719.25
5.4.200.0100.05719.12
5.4.190.0270.05018.95
5.4.180.0030.06019.04
5.4.170.0200.05719.20
5.4.160.0430.05019.13
5.4.150.0300.05719.00
5.4.140.0430.04716.35
5.4.130.0300.05716.39
5.4.120.0470.04316.54
5.4.110.0430.05016.60
5.4.100.0470.06716.63
5.4.90.0470.05016.16
5.4.80.0430.04716.63
5.4.70.0370.06016.40
5.4.60.0200.03316.52
5.4.50.0070.05016.34
5.4.40.0330.04716.38
5.4.30.0000.05016.53
5.4.20.0270.04716.18
5.4.10.0200.03716.30

preferences:
142.48 ms | 1394 KiB | 7 Q