3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function func() { echo 'foo'; } } class Bar extends Foo { public function func() { echo 'bar'; } } $obj = new Bar(); $obj->func(); // returns of course 'bar' $parentClassString = get_parent_class($obj); $newObj = new $parentClassString; $newObj->func();

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.4.140.0120.01217.53
8.4.130.0120.00718.69
8.4.120.0120.00724.01
8.4.110.0130.00720.40
8.4.100.0090.01017.89
8.4.90.0130.00918.59
8.4.80.0040.00519.62
8.4.70.0150.00518.14
8.4.60.0080.01218.52
8.4.50.0120.00817.64
8.4.40.0090.01217.79
8.4.30.0150.00417.41
8.4.20.0110.01119.59
8.4.10.0030.00618.79
8.3.270.0140.00516.52
8.3.260.0090.00816.60
8.3.250.0120.00718.86
8.3.240.0130.00616.81
8.3.230.0050.00416.39
8.3.220.0110.00719.07
8.3.210.0080.00216.56
8.3.200.0050.00616.44
8.3.190.0130.00516.93
8.3.180.0090.00816.60
8.3.170.0050.00218.84
8.3.160.0090.00916.63
8.3.150.0030.00520.64
8.3.140.0040.01116.77
8.3.130.0090.00018.39
8.3.120.0040.00419.01
8.3.110.0150.00020.03
8.3.100.0000.00916.62
8.3.90.0050.00326.77
8.3.80.0070.00418.43
8.3.70.0040.01516.58
8.3.60.0100.00718.43
8.3.50.0040.00918.09
8.3.40.0080.00818.67
8.3.30.0120.00318.68
8.3.20.0030.00519.00
8.3.10.0070.00021.87
8.3.00.0030.00617.89
8.2.290.0130.00620.36
8.2.280.0080.01118.31
8.2.270.0040.00417.24
8.2.260.0000.00719.11
8.2.250.0000.00916.74
8.2.240.0000.00817.01
8.2.230.0110.00720.94
8.2.220.0060.00324.06
8.2.210.0000.01426.77
8.2.200.0100.00018.16
8.2.190.0070.01116.63
8.2.180.0120.00618.39
8.2.170.0140.00422.96
8.2.160.0140.00019.04
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00021.18
8.2.110.0030.00622.20
8.2.100.0110.00021.13
8.2.90.0080.00017.75
8.2.80.0000.00818.78
8.2.70.0000.00817.93
8.2.60.0050.00517.50
8.2.50.0000.00817.63
8.2.40.0000.00817.62
8.2.30.0000.00817.88
8.2.20.0070.00017.93
8.2.10.0070.00018.10
8.2.00.0000.00719.43
8.1.330.0120.00721.89
8.1.320.0110.01016.00
8.1.310.0140.00316.52
8.1.300.0090.00020.11
8.1.290.0070.00430.84
8.1.280.0140.00725.92
8.1.270.0080.00023.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0060.00618.96
8.1.220.0040.00417.75
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0000.00817.11
8.1.180.0060.00318.10
8.1.170.0080.00019.01
8.1.160.0000.00718.88
8.1.150.0040.00418.79
8.1.140.0030.00317.81
8.1.130.0000.01019.01
8.1.120.0000.00717.41
8.1.110.0040.00417.29
8.1.100.0080.00017.28
8.1.90.0000.00717.38
8.1.80.0040.00417.25
8.1.70.0070.00017.35
8.1.60.0030.00517.52
8.1.50.0040.00417.48
8.1.40.0000.00817.41
8.1.30.0000.00817.58
8.1.20.0080.00017.52
8.1.10.0060.00617.52
8.1.00.0000.00817.36
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.45
8.0.270.0070.00016.89
8.0.260.0000.00717.21
8.0.250.0060.00316.79
8.0.240.0030.00616.92
8.0.230.0000.00716.89
8.0.220.0070.00016.72
8.0.210.0000.00716.74
8.0.200.0030.00316.82
8.0.190.0080.00016.89
8.0.180.0040.00416.87
8.0.170.0040.00416.84
8.0.160.0000.00716.86
8.0.150.0000.00716.79
8.0.140.0000.00816.79
8.0.130.0000.00513.21
8.0.120.0030.00516.68
8.0.110.0040.00416.64
8.0.100.0050.00216.83
8.0.90.0040.00416.88
8.0.80.0090.00516.79
8.0.70.0040.00416.70
8.0.60.0040.00416.88
8.0.50.0050.00316.81
8.0.30.0070.01117.03
8.0.20.0130.00617.43
8.0.10.0040.00416.93
8.0.00.0120.00616.59
7.4.330.0030.00315.55
7.4.320.0030.00316.59
7.4.300.0000.00616.54
7.4.290.0000.00716.61
7.4.280.0000.00716.57
7.4.270.0000.00616.50
7.4.260.0030.00316.59
7.4.250.0030.00316.49
7.4.240.0030.00316.36
7.4.230.0030.00316.41
7.4.220.0000.00816.70
7.4.210.0090.00616.57
7.4.200.0080.00016.34
7.4.160.0080.01016.56
7.4.140.0070.01217.86
7.4.130.0100.00716.64
7.4.120.0100.00816.43
7.4.110.0090.00916.42
7.4.100.0130.00416.47
7.4.90.0030.01416.49
7.4.80.0070.01319.39
7.4.70.0150.00316.59
7.4.60.0120.01116.31
7.4.50.0060.00616.60
7.4.40.0100.00716.57
7.4.00.0040.00815.07
7.3.330.0020.00213.09
7.3.320.0030.00213.12
7.3.310.0030.00316.32
7.3.300.0080.00016.32
7.3.290.0000.00716.42
7.3.280.0040.01116.28
7.3.260.0090.00916.43
7.3.240.0100.00616.37
7.3.230.0130.01516.30
7.3.210.0030.01316.36
7.3.200.0120.00416.36
7.3.190.0120.00316.24
7.3.180.0060.01516.41
7.3.170.0060.01016.41
7.3.160.0130.00316.54
7.2.330.0130.01016.75
7.2.320.0150.00316.64
7.2.310.0070.01116.42
7.2.300.0090.00616.39
7.2.290.0090.01216.40
7.2.60.0070.00716.99
7.2.40.1490.00817.55
7.2.30.2140.01118.01
7.2.20.1440.01317.86
7.2.10.1240.01217.96
7.2.00.1520.00917.84
7.1.200.0070.00415.88
7.1.160.2180.00616.94
7.1.150.1550.00716.55
7.1.140.1420.00716.77
7.1.130.1410.01016.75
7.1.120.1360.00916.95
7.1.110.1500.00616.13
7.1.100.1330.00816.38
7.1.90.1270.01115.94
7.1.80.1430.00616.36
7.1.70.1290.00815.39
7.1.60.1160.01233.34
7.1.50.1230.00933.02
7.1.40.1060.00932.54
7.1.30.1020.01532.89
7.1.20.1020.01632.74
7.1.10.0880.00914.70
7.1.00.0870.01114.62

preferences:
29.94 ms | 403 KiB | 5 Q