3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ancestor { public $publicVar = 'ancestor\'s public var'; static $statisVar = '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)
8.3.60.0100.00716.50
8.3.50.0140.00721.13
8.3.40.0070.00718.65
8.3.30.0030.01318.59
8.3.20.0030.01020.32
8.3.10.0040.00423.48
8.3.00.0040.00419.56
8.2.180.0070.00716.75
8.2.170.0090.01222.96
8.2.160.0100.00320.43
8.2.150.0080.00025.66
8.2.140.0090.00924.66
8.2.130.0000.00726.16
8.2.120.0000.00817.50
8.2.110.0090.00022.14
8.2.100.0060.00617.63
8.2.90.0040.00818.71
8.2.80.0050.00317.97
8.2.70.0000.00817.62
8.2.60.0000.00917.91
8.2.50.0000.00818.07
8.2.40.0080.00019.45
8.2.30.0000.01117.86
8.2.20.0040.00417.55
8.2.10.0040.00417.89
8.2.00.0040.00417.86
8.1.280.0100.01025.92
8.1.270.0080.00020.21
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.15
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.22
8.1.190.0080.00017.13
8.1.180.0030.00618.10
8.1.170.0040.00418.51
8.1.160.0000.00822.00
8.1.150.0040.00418.77
8.1.140.0050.00317.32
8.1.130.0050.00317.54
8.1.120.0050.00217.25
8.1.110.0000.00817.30
8.1.100.0000.00717.23
8.1.90.0040.00417.35
8.1.80.0070.00017.28
8.1.70.0030.00317.37
8.1.60.0040.00417.51
8.1.50.0000.00817.36
8.1.40.0000.00817.50
8.1.30.0000.00817.59
8.1.20.0040.00417.48
8.1.10.0000.00817.47
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.39
8.0.270.0040.00417.09
8.0.260.0000.00717.18
8.0.250.0000.00716.86
8.0.240.0050.00216.95
8.0.230.0070.00016.90
8.0.220.0040.00416.89
8.0.210.0040.00416.80
8.0.200.0000.00716.88
8.0.190.0000.00716.84
8.0.180.0050.00216.80
8.0.170.0040.00416.79
8.0.160.0030.00616.85
8.0.150.0000.00716.89
8.0.140.0000.00716.89
8.0.130.0060.00013.30
8.0.120.0070.00016.84
8.0.110.0040.00416.95
8.0.100.0040.00416.84
8.0.90.0040.00416.88
8.0.80.0100.01016.93
8.0.70.0040.00416.77
8.0.60.0000.00716.86
8.0.50.0040.00416.88
8.0.30.0080.01117.23
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0080.01016.54
7.4.330.0050.00015.08
7.4.320.0060.00016.30
7.4.300.0000.00616.44
7.4.290.0000.00716.53
7.4.280.0040.00416.53
7.4.270.0030.00316.54
7.4.260.0000.00816.59
7.4.250.0000.00716.49
7.4.240.0050.00216.48
7.4.230.0070.00016.46
7.4.220.0070.01416.59
7.4.210.0060.00916.44
7.4.200.0000.00716.55
7.4.160.0070.01516.29
7.4.150.0130.01017.40
7.4.140.0120.00717.86
7.4.130.0100.00916.42
7.4.120.0100.00816.41
7.4.110.0160.00416.56
7.4.100.0120.00616.36
7.4.90.0100.00716.48
7.4.80.0030.01419.39
7.4.70.0130.00316.45
7.4.60.0040.01216.41
7.4.50.0040.00416.52
7.4.40.0200.00316.61
7.4.30.0150.00616.54
7.4.00.0090.00914.88
7.3.330.0000.00613.29
7.3.320.0030.00213.28
7.3.310.0040.00416.34
7.3.300.0030.00316.30
7.3.290.0060.00016.31
7.3.280.0090.01016.27
7.3.270.0090.00917.40
7.3.260.0160.00616.24
7.3.250.0090.00816.41
7.3.240.0060.01016.49
7.3.230.0170.00016.39
7.3.210.0100.00716.49
7.3.200.0110.00516.38
7.3.190.0110.00816.24
7.3.180.0110.00816.38
7.3.170.0130.00316.31
7.3.160.0070.01116.28
7.3.120.0070.00714.68
7.3.110.0070.00714.76
7.3.100.0130.00314.82
7.3.90.0070.00714.76
7.3.80.0060.01014.49
7.3.70.0100.00614.80
7.3.60.0000.01214.58
7.3.50.0060.00314.55
7.3.40.0080.00614.55
7.3.30.0060.00614.62
7.3.20.0060.01016.28
7.3.10.0040.01216.50
7.3.00.0020.01316.49
7.2.330.0140.00316.67
7.2.320.0130.00616.15
7.2.310.0090.00616.57
7.2.300.0130.00316.55
7.2.290.0100.01416.66
7.2.240.0040.01114.98
7.2.230.0090.00914.86
7.2.220.0000.01114.95
7.2.210.0060.01214.68
7.2.200.0040.00714.67
7.2.190.0110.00314.53
7.2.180.0030.01414.98
7.2.170.0030.01214.91
7.2.160.0030.01114.88
7.2.150.0110.00416.77
7.2.140.0110.00816.71
7.2.130.0060.00916.72
7.2.120.0020.01416.74
7.2.110.0090.00216.63
7.2.100.0030.01216.78
7.2.90.0060.01116.90
7.2.80.0070.00716.81
7.2.70.0040.00916.81
7.2.60.0100.00316.84
7.2.50.0030.01016.65
7.2.40.0060.01016.66
7.2.30.0100.00416.92
7.2.20.0080.01016.68
7.2.10.0080.00616.70
7.2.00.0060.00617.56
7.1.330.0030.00615.61
7.1.320.0110.00415.66
7.1.310.0070.00715.40
7.1.300.0100.00715.45
7.1.290.0060.00915.75
7.1.280.0100.00315.56
7.1.270.0030.01215.49
7.1.260.0060.01015.65
7.1.250.0030.00915.69
7.1.200.0000.00915.51
7.1.100.0020.00718.23
7.1.70.0070.00016.74
7.1.60.0060.00620.03
7.1.50.0070.01716.73
7.1.00.0030.07322.36
7.0.200.0030.00616.34
7.0.60.0100.05719.78
7.0.50.0130.03317.90
7.0.40.0200.07320.28
7.0.30.0270.07020.18
7.0.20.0170.04020.19
7.0.10.0170.06720.08
7.0.00.0000.04720.22
5.6.280.0000.04720.78
5.6.210.0000.08020.71
5.6.200.0070.06718.17
5.6.190.0130.07720.41
5.6.180.0500.04320.77
5.6.170.0270.06020.49
5.6.160.0100.06020.55
5.6.150.0130.07718.14
5.6.140.0000.04318.24
5.6.130.0100.08718.26
5.6.120.0030.04321.01
5.6.110.0270.05720.98
5.6.100.0030.07720.98
5.6.90.0030.05020.98
5.6.80.0130.06320.48
5.5.350.0070.08020.34
5.5.340.0100.06718.02
5.5.330.0130.07720.40
5.5.320.1630.06720.27
5.5.310.0330.07020.32
5.5.300.0100.05317.94
5.5.290.0070.08017.99
5.5.280.0100.08020.96
5.5.270.0170.07320.85
5.5.260.0070.07020.84
5.5.250.0130.06720.70
5.5.240.0030.07720.07
5.4.450.0430.05319.48
5.4.440.0330.06719.48
5.4.430.0430.05319.45
5.4.420.0400.05319.33
5.4.410.0430.05319.44
5.4.400.0470.04318.98
5.4.390.0370.06319.29
5.4.380.0370.06319.30
5.4.370.0400.05719.24
5.4.360.0300.05719.21
5.4.350.0270.05719.21
5.4.340.0330.05719.13
5.4.320.0300.05719.27
5.4.310.0370.05319.38
5.4.300.0370.05719.25
5.4.290.0430.05018.87
5.4.280.0200.07319.14
5.4.270.0370.05019.37
5.4.260.0230.06018.84
5.4.250.0400.04319.28
5.4.240.0200.06319.37
5.4.230.0330.05019.00
5.4.220.0300.06019.12
5.4.210.0430.05019.11
5.4.200.0230.06719.00
5.4.190.0370.04719.25
5.4.180.0300.05319.10
5.4.170.0330.06319.11
5.4.160.0400.05018.82
5.4.150.0400.05019.25
5.4.140.0500.06016.38
5.4.130.0330.05716.52
5.4.120.0370.05016.53
5.4.110.0330.06316.62
5.4.100.0400.05016.64
5.4.90.0530.04716.52
5.4.80.0470.05716.41
5.4.70.0300.06716.55
5.4.60.0300.06316.54
5.4.50.0070.06016.49
5.4.40.0200.06716.51
5.4.30.0030.06316.42
5.4.20.0330.06716.18
5.4.10.0200.04316.42

preferences:
47.58 ms | 401 KiB | 5 Q