3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function testA(){ echo "AA"; } } class B extends A{ public function testB(){ echo "BB"; } } class C extends B{ //Here i am able to call class B's function like public function testB(){ parent::testB(); } //but not able to call Class A's function public function testB1(){ $this->testA(); // Here its giving error } } $class = new C; $class->testB(); echo PHP_EOL; $class->testB1();

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.5.20.0120.00619.58
8.5.10.0060.00216.88
8.5.00.0170.01220.13
8.4.170.0090.01320.21
8.4.160.0150.00922.30
8.4.150.0030.00014.05
8.4.140.0110.01117.43
8.4.130.0150.00517.57
8.4.120.0070.01324.12
8.4.110.0160.00422.59
8.4.100.0110.00920.77
8.4.90.0080.01217.60
8.4.80.0110.01017.68
8.4.70.0100.01017.79
8.4.60.0130.00718.79
8.4.50.0120.00717.67
8.4.40.0000.01518.77
8.4.30.0100.01022.28
8.4.20.0130.00718.57
8.4.10.0060.00319.60
8.3.290.0140.00720.70
8.3.280.0100.01018.28
8.3.270.0130.00616.45
8.3.260.0110.00816.68
8.3.250.0040.00518.65
8.3.240.0090.01418.84
8.3.230.0030.00516.52
8.3.220.0060.00217.20
8.3.210.0100.00916.61
8.3.200.0040.00516.59
8.3.190.0070.00117.19
8.3.180.0110.00816.97
8.3.170.0080.00020.63
8.3.160.0160.00317.23
8.3.150.0130.00616.57
8.3.140.0060.00917.32
8.3.130.0130.00718.43
8.3.120.0040.00420.74
8.3.110.0120.00920.94
8.3.100.0030.00716.47
8.3.90.0000.00818.18
8.3.80.0060.00318.30
8.3.70.0120.00918.18
8.3.60.0030.01318.18
8.3.50.0090.00318.67
8.3.40.0090.00618.76
8.3.30.0110.00418.67
8.3.20.0030.00620.87
8.3.10.0060.00323.68
8.3.00.0040.00422.43
8.2.300.0090.01122.05
8.2.290.0080.00520.37
8.2.280.0090.00618.39
8.2.270.0070.01116.42
8.2.260.0040.01416.65
8.2.250.0000.00716.55
8.2.240.0060.00318.97
8.2.230.0030.00522.58
8.2.220.0060.00324.06
8.2.210.0070.01126.77
8.2.200.0000.01016.75
8.2.190.0090.00616.75
8.2.180.0100.00716.50
8.2.170.0090.00622.96
8.2.160.0030.01022.09
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00421.18
8.2.120.0000.00826.35
8.2.110.0050.00521.04
8.2.100.0090.00319.51
8.2.90.0050.00320.32
8.2.80.0030.00618.04
8.2.70.0040.00417.93
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0040.00419.18
8.2.30.0040.00417.92
8.2.20.0050.00318.03
8.2.10.0040.00419.05
8.2.00.0000.00717.87
8.1.340.0130.00717.67
8.1.330.0090.00821.69
8.1.320.0130.00518.34
8.1.310.0070.00016.13
8.1.300.0040.00420.21
8.1.290.0030.00718.88
8.1.280.0130.00325.92
8.1.270.0040.00420.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.74
8.1.230.0080.00321.03
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00617.22
8.1.190.0060.00317.11
8.1.180.0060.00318.10
8.1.170.0040.00418.51
8.1.160.0070.00018.75
8.1.150.0030.00518.82
8.1.140.0040.00420.27
8.1.130.0040.00420.25
8.1.120.0040.00417.37
8.1.110.0000.00817.35
8.1.100.0070.00017.25
8.1.90.0070.00017.38
8.1.80.0000.00917.25
8.1.70.0000.00717.27
8.1.60.0040.00417.63
8.1.50.0060.00317.55
8.1.40.0000.01017.47
8.1.30.0090.00517.61
8.1.20.0030.00717.60
8.1.10.0030.00617.45
8.1.00.0000.00817.54
8.0.300.0000.00719.66
8.0.290.0050.00316.63
8.0.280.0030.00318.38
8.0.270.0030.00317.16
8.0.260.0000.00720.07
8.0.250.0030.00316.80
8.0.240.0070.00016.83
8.0.230.0000.00816.85
8.0.220.0030.00516.85
8.0.210.0000.00716.71
8.0.200.0000.00716.86
8.0.190.0000.00816.77
8.0.180.0020.00516.71
8.0.170.0030.00516.72
8.0.160.0000.00916.72
8.0.150.0040.00416.80
8.0.140.0120.00316.68
8.0.130.0000.00613.29
8.0.120.0060.00316.66
8.0.110.0000.00816.80
8.0.100.0040.00416.89
8.0.90.0030.00516.74
8.0.80.0090.01216.89
8.0.70.0080.00016.64
8.0.60.0040.00416.86
8.0.50.0060.00316.71
8.0.30.0090.00917.08
8.0.20.0100.00917.20
8.0.10.0080.00016.89
8.0.00.0100.01016.70
7.4.330.0000.00515.55
7.4.320.0000.00616.34
7.4.300.0000.00616.45
7.4.290.0030.00316.58
7.4.280.0040.00416.35
7.4.270.0000.00716.61
7.4.260.0000.00716.38
7.4.250.0000.00816.41
7.4.240.0000.00716.46
7.4.230.0070.00016.48
7.4.220.0030.00516.51
7.4.210.0050.01516.58
7.4.200.0050.00316.66
7.4.160.0090.00616.56
7.4.140.0090.00917.86
7.4.130.0090.00916.30
7.4.120.0160.00516.57
7.4.110.0090.00916.50
7.4.100.0110.00616.33
7.4.90.0110.00716.49
7.4.80.0140.00719.39
7.4.70.0090.00916.58
7.4.60.0100.00616.41
7.4.50.0110.00516.30
7.4.40.0110.00816.39
7.4.00.0030.01215.00
7.3.330.0000.00513.05
7.3.320.0030.00313.08
7.3.310.0070.00016.34
7.3.300.0030.00316.18
7.3.290.0000.00716.10
7.3.280.0070.01216.21
7.3.260.0100.00816.37
7.3.230.0060.01116.41
7.3.210.0030.02016.25
7.3.200.0100.01016.46
7.3.190.0040.02016.22
7.3.180.0000.01816.44
7.3.170.0100.01016.17
7.3.160.0250.02016.20
7.3.30.0070.01514.57
7.3.20.2790.01014.71
7.3.10.3030.00714.65
7.3.00.2540.01014.66
7.2.330.0070.01016.80
7.2.320.0090.01416.68
7.2.310.0030.01716.59
7.2.300.0090.01216.47
7.2.290.0060.01116.68
7.2.160.0040.01214.80
7.2.150.3460.00314.67
7.2.140.2840.00315.05
7.2.130.2270.00014.91
7.2.120.2830.01714.75
7.2.110.2850.00314.77
7.2.100.2500.00014.98
7.2.90.2600.01715.00
7.2.80.2740.01014.90
7.2.70.0220.01315.08
7.2.60.3810.01015.25
7.2.50.3110.01014.89
7.2.40.0920.01614.91
7.2.30.4070.00015.02
7.2.20.3110.00315.05
7.2.10.3300.01015.22
7.2.00.3950.00314.85
7.1.330.0020.00517.23
7.1.270.3090.00313.63
7.1.260.3470.00713.63
7.1.250.2310.00313.41
5.3.120.0030.00312.99
4.3.10.0000.00310.84

preferences:
182.81 ms | 403 KiB | 5 Q