3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testParent{ public function testParent(){ function __construct(){ echo 'In parent'; } } public function abc(){ echo 'in testParent->abc'; } } class testchild extends testParent{ function __construct(){ parent::__construct(); echo 'In child'; } } $a = new testChild();

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.0060.00916.50
8.3.50.0120.00621.93
8.3.40.0070.00718.87
8.3.30.0090.00918.86
8.3.20.0150.00019.96
8.3.10.0080.00021.86
8.3.00.0080.00023.70
8.2.180.0140.00716.88
8.2.170.0140.00719.00
8.2.160.0090.00622.96
8.2.150.0070.00325.66
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0080.00026.35
8.2.110.0100.00022.18
8.2.100.0060.00617.80
8.2.90.0000.00819.05
8.2.80.0070.00017.97
8.2.70.0080.00017.25
8.2.60.0080.00018.03
8.2.50.0050.00318.07
8.2.40.0040.00422.38
8.2.30.0000.00720.66
8.2.20.0040.00417.60
8.2.10.0030.00617.95
8.2.00.0030.00617.97
8.1.280.0070.01025.92
8.1.270.0070.00423.80
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00323.92
8.1.230.0000.01118.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0000.00720.61
8.1.150.0070.00018.69
8.1.140.0040.00419.39
8.1.130.0040.00417.42
8.1.120.0040.00417.31
8.1.110.0030.00517.32
8.1.100.0030.00517.33
8.1.90.0020.00517.32
8.1.80.0000.00717.23
8.1.70.0030.00317.31
8.1.60.0040.00417.51
8.1.50.0040.00417.48
8.1.40.0040.00417.44
8.1.30.0000.00917.55
8.1.20.0050.00217.57
8.1.10.0040.00417.55
8.1.00.0040.00417.42
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0040.00418.43
8.0.270.0000.00817.13
8.0.260.0040.00417.23
8.0.250.0030.00316.86
8.0.240.0000.00716.91
8.0.230.0000.00716.84
8.0.220.0040.00416.79
8.0.210.0030.00316.86
8.0.200.0030.00316.96
8.0.190.0030.00616.95
8.0.180.0000.00716.80
8.0.170.0040.00416.92
8.0.160.0030.00317.02
8.0.150.0030.00316.83
8.0.140.0040.00416.80
8.0.130.0050.00013.33
8.0.120.0080.00016.75
8.0.110.0040.00416.79
8.0.100.0070.00016.79
8.0.90.0000.00716.87
8.0.80.0060.01316.91
8.0.70.0050.00316.79
8.0.60.0020.00516.77
8.0.50.0000.00816.84
8.0.30.0090.00916.90
8.0.20.0170.00817.40
8.0.10.0070.00016.80
8.0.00.0100.00916.65
7.4.330.0020.00216.67
7.4.320.0000.00616.60
7.4.300.0000.00716.42
7.4.290.0040.00416.59
7.4.280.0070.00216.41
7.4.270.0030.00316.46
7.4.260.0070.00016.43
7.4.250.0000.00716.56
7.4.240.0020.00516.58
7.4.230.0040.00416.30
7.4.220.0090.01516.50
7.4.210.0090.00816.55
7.4.200.0030.00316.58
7.4.160.0030.01316.54
7.4.150.0100.01317.40
7.4.140.0100.01217.86
7.4.130.0130.01016.57
7.4.120.0120.00516.53
7.4.110.0140.00316.43
7.4.100.0040.01416.32
7.4.90.0070.01016.46
7.4.80.0100.00919.39
7.4.70.0050.01516.59
7.4.60.0060.00916.43
7.4.50.0040.01116.71
7.4.40.0140.00716.49
7.4.30.0090.00916.55
7.4.00.0030.01315.22
7.3.330.0000.00513.13
7.3.320.0030.00313.16
7.3.310.0030.00316.16
7.3.300.0000.00716.30
7.3.290.0030.00316.32
7.3.280.0090.00816.28
7.3.270.0090.00917.40
7.3.260.0030.01316.46
7.3.250.0070.01016.31
7.3.240.0100.00716.32
7.3.230.0100.00716.39
7.3.210.0070.01116.28
7.3.200.0080.00919.39
7.3.190.0070.01016.27
7.3.180.0040.01216.34
7.3.170.0040.01116.27
7.3.160.0100.00616.38
7.3.120.0090.00614.87
7.3.110.0040.01115.01
7.3.100.0040.00814.98
7.3.90.0070.00714.78
7.3.80.0070.00414.84
7.3.70.0090.00614.74
7.3.60.0030.00614.55
7.3.50.0000.01114.87
7.3.40.0030.00514.71
7.3.30.0070.01014.55
7.3.20.0140.00016.64
7.3.10.0000.01316.64
7.3.00.0000.01216.44
7.2.330.0000.01716.61
7.2.320.0070.01116.68
7.2.310.0070.01016.72
7.2.300.0220.00016.68
7.2.290.0060.01516.80
7.2.240.0100.00315.15
7.2.230.0080.00815.26
7.2.220.0030.01214.95
7.2.210.0000.01515.21
7.2.200.0000.01014.74
7.2.190.0030.01315.00
7.2.180.0070.01015.13
7.2.170.0040.00914.94
7.2.160.0040.01115.02
7.2.150.0110.00416.71
7.2.140.0070.00716.76
7.2.130.0030.01017.02
7.2.120.0060.00616.92
7.2.110.0080.00416.98
7.2.100.0080.00416.64
7.2.90.0030.00916.61
7.2.80.0000.01216.73
7.2.70.0040.00816.84
7.2.60.0060.00616.85
7.2.50.0090.00316.87
7.2.40.0090.00316.59
7.2.30.0030.00916.88
7.2.20.0030.00816.57
7.2.10.0040.00816.80
7.2.00.0020.00818.16
7.1.330.0100.00315.78
7.1.320.0100.00315.50
7.1.310.0070.00715.70
7.1.300.0000.01115.50
7.1.290.0090.00615.48
7.1.280.0000.01215.70
7.1.270.0000.01415.55
7.1.260.0090.00015.85
7.1.250.0000.01315.64
7.1.200.0000.01315.49
7.1.100.0000.01018.13
7.1.70.0030.00517.06
7.1.60.0110.01419.20
7.1.50.0070.01034.60
7.1.00.0030.07722.45
7.0.200.0030.00716.86
7.0.60.0030.08321.73
7.0.50.0000.05017.83
7.0.40.0100.04020.21
7.0.30.0230.04320.16
7.0.20.0270.04320.12
7.0.10.0030.08020.30
7.0.00.0030.07320.32
5.6.280.0000.03321.13
5.6.210.0070.04020.55
5.6.200.0070.08318.29
5.6.190.0030.04320.49
5.6.180.0430.04320.46
5.6.170.0230.08020.47
5.6.160.0000.08720.66
5.6.150.0100.06718.18
5.6.140.0030.04318.18
5.6.130.0030.05718.28
5.6.120.0170.07321.14
5.6.110.0030.08321.12
5.6.100.0070.05321.13
5.6.90.0070.04020.96
5.6.80.0100.03720.43
5.5.350.0370.07020.47
5.5.340.0100.04318.00
5.5.330.0070.08320.19
5.5.320.0570.06720.27
5.5.310.0300.07320.30
5.5.300.0070.06718.08
5.5.290.0070.08317.95
5.5.280.0070.08320.88
5.5.270.0100.07020.77
5.5.260.0000.04320.96
5.5.250.0070.07020.58
5.5.240.0130.06720.27

preferences:
49.91 ms | 401 KiB | 5 Q