3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function who() { echo "A\n"; } } class B extends A { public function who() { echo "B\n"; } } var_dump(call_user_func(['B', 'parent::newInstance']));

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.0080.00616.63
8.3.50.0110.00821.99
8.3.40.0040.01118.80
8.3.30.0040.01119.01
8.3.20.0040.00420.29
8.3.10.0080.00021.90
8.3.00.0040.00420.80
8.2.180.0130.00318.29
8.2.170.0170.00322.96
8.2.160.0080.00522.26
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00617.68
8.2.110.0060.00319.19
8.2.100.0030.00917.50
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0040.00418.02
8.2.30.0040.00417.98
8.2.20.0080.00017.73
8.2.10.0070.00018.06
8.2.00.0040.00417.54
8.1.280.0170.00325.92
8.1.270.0090.00018.88
8.1.260.0020.00526.35
8.1.250.0000.00828.09
8.1.240.0040.00423.91
8.1.230.0040.00718.75
8.1.220.0000.00817.74
8.1.210.0000.00718.77
8.1.200.0060.00317.22
8.1.190.0060.00317.00
8.1.180.0050.00318.10
8.1.170.0000.00918.51
8.1.160.0000.00721.98
8.1.150.0030.00518.75
8.1.140.0040.00417.22
8.1.130.0070.00017.75
8.1.120.0030.00317.36
8.1.110.0080.00017.30
8.1.100.0070.00017.37
8.1.90.0000.00717.34
8.1.80.0000.00817.36
8.1.70.0030.00317.34
8.1.60.0070.00017.49
8.1.50.0030.00517.40
8.1.40.0000.00717.45
8.1.30.0000.00817.62
8.1.20.0000.00817.47
8.1.10.0070.00017.41
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0050.00318.32
8.0.270.0030.00317.19
8.0.260.0060.00017.17
8.0.250.0030.00316.95
8.0.240.0030.00316.96
8.0.230.0030.00616.82
8.0.220.0070.00016.92
8.0.210.0030.00316.79
8.0.200.0000.00716.90
8.0.190.0060.00316.93
8.0.180.0060.00616.79
8.0.170.0050.00216.86
8.0.160.0040.00416.86
8.0.150.0070.00016.82
8.0.140.0000.00716.82
8.0.130.0030.00313.32
8.0.120.0040.00416.87
8.0.110.0040.00416.91
8.0.100.0000.00716.66
8.0.90.0040.00416.68
8.0.80.0060.01516.76
8.0.70.0040.00416.83
8.0.60.0030.00616.74
8.0.50.0040.00416.90
8.0.30.0080.01617.02
8.0.20.0080.01217.40
8.0.10.0000.00716.81
8.0.00.0110.00716.79
7.4.330.0060.00015.03
7.4.320.0000.00616.54
7.4.300.0030.00316.48
7.4.290.0080.00016.56
7.4.280.0060.00316.53
7.4.270.0070.00016.52
7.4.260.0070.00316.30
7.4.250.0000.00716.39
7.4.240.0040.00416.46
7.4.230.0000.00716.42
7.4.220.0070.01216.54
7.4.210.0090.00516.46
7.4.200.0080.00016.62
7.4.160.0130.00716.46
7.4.150.0150.00317.40
7.4.140.0070.01417.86
7.4.130.0120.00716.45
7.4.120.0090.00816.50
7.4.110.0090.01216.42
7.4.100.0060.01216.10
7.4.90.0130.00316.37
7.4.80.0110.01119.39
7.4.70.0060.01316.55
7.4.60.0100.00716.35
7.4.50.0030.00316.49
7.4.40.0100.00716.30
7.4.30.0150.01016.18
7.4.00.0050.01314.91
7.3.330.0040.00413.11
7.3.320.0030.00313.23
7.3.310.0000.00816.25
7.3.300.0000.00616.29
7.3.290.0030.00316.11
7.3.280.0050.01116.22
7.3.270.0110.01417.40
7.3.260.0140.00316.20
7.3.250.0130.00616.22
7.3.240.0080.00816.28
7.3.230.0150.00316.43
7.3.210.0130.00316.30
7.3.200.0000.01619.39
7.3.190.0140.01016.46
7.3.180.0110.00516.41
7.3.170.0000.02216.43
7.3.160.0060.01316.26
7.3.120.0070.01314.62
7.3.110.0130.00614.63
7.3.100.0030.01014.75
7.3.90.0000.01114.85
7.3.80.0040.01214.60
7.3.70.0100.00314.70
7.3.60.0060.00914.77
7.3.50.0030.01014.80
7.3.40.0000.00914.40
7.3.30.0030.01314.49
7.3.20.0100.00716.60
7.3.10.0090.00416.52
7.3.00.0070.00716.20
7.2.330.0090.00916.47
7.2.320.0030.01416.33
7.2.310.0100.00616.53
7.2.300.0140.00716.59
7.2.290.0100.01316.53
7.2.250.0060.00915.06
7.2.240.0090.00615.01
7.2.230.0040.01114.70
7.2.220.0090.00315.04
7.2.210.0040.01415.11
7.2.200.0030.00714.91
7.2.190.0060.00914.45
7.2.180.0080.00614.80
7.2.170.0060.00614.69
7.2.60.0050.00916.14
7.2.00.0040.01219.34
7.1.330.0070.00715.51
7.1.320.0080.00415.73
7.1.310.0070.01015.71
7.1.300.0030.00715.48
7.1.290.0030.00615.67
7.1.280.0110.00415.41
7.1.270.0070.00715.44
7.1.260.0090.00315.65
7.1.200.0150.00315.86
7.1.100.0040.01217.98
7.1.70.0060.00917.16
7.1.60.0060.01319.46
7.1.50.0170.02034.66
7.1.00.0070.07322.36
7.0.200.0640.00314.25
7.0.140.0000.04722.00
7.0.60.0130.08019.87
7.0.50.0100.03317.88
7.0.40.0070.05720.04
7.0.30.0330.05720.06
7.0.20.0370.05020.07
7.0.10.0030.04320.19
7.0.00.0100.08320.07
5.6.280.0000.07321.10
5.6.210.0030.04020.62
5.6.200.0130.07318.16
5.6.190.0070.08020.67
5.6.180.0170.04320.77
5.6.170.0170.05020.56
5.6.160.0130.04320.53
5.6.150.0000.04318.17
5.6.140.0030.06018.18
5.6.130.0100.03718.18
5.6.120.0030.05321.15
5.6.110.0170.07020.98
5.6.100.0070.04720.98
5.6.90.0070.08720.97
5.6.80.0070.05720.38
5.5.350.0170.07020.45
5.5.340.0170.07017.98
5.5.330.0070.08720.14
5.5.320.0230.04320.27
5.5.310.0370.08020.42
5.5.300.0030.04017.92
5.5.290.0030.06018.02
5.5.280.0070.08320.87
5.5.270.0070.05020.78
5.5.260.0000.07320.96
5.5.250.0100.08020.55
5.5.240.0100.06720.12
5.4.450.0630.06719.48
5.4.440.0770.06019.39
5.4.430.0200.04319.45
5.4.420.0130.05019.52
5.4.410.0170.05719.25
5.4.400.0270.08018.62
5.4.390.0300.07318.74
5.4.380.0370.07318.57
5.4.370.0470.07018.76
5.4.360.0370.07718.46
5.4.350.0430.07318.80
5.4.340.0270.06018.75
5.4.320.0330.05718.80
5.4.310.0330.05018.60
5.4.300.0270.05318.63
5.4.290.0300.04718.49
5.4.280.0270.05318.52
5.4.270.0270.05318.61
5.4.260.0370.05318.79
5.4.250.0270.06018.71
5.4.240.0400.05018.80
5.4.230.0330.05018.82
5.4.220.0300.06018.77
5.4.210.0270.05318.74
5.4.200.0300.05316.80
5.4.190.0500.05318.57
5.4.180.0330.06018.58
5.4.170.0370.05018.48
5.4.160.0400.05318.57
5.4.150.0470.04318.48
5.4.140.0370.07016.26
5.4.130.0500.06716.46
5.4.120.0300.05716.25
5.4.110.0300.07016.25
5.4.100.0400.05016.30
5.4.90.0430.05316.21
5.4.80.0470.04716.20
5.4.70.0330.05016.25
5.4.60.0270.05016.41
5.4.50.0430.05316.30
5.4.40.0300.05316.20
5.4.30.0530.04716.25
5.4.20.0270.05316.16
5.4.10.0470.04316.38
5.4.00.0370.04715.63
5.3.290.0400.05314.89
5.3.280.0370.05014.79
5.3.270.0370.05014.71
5.3.260.0400.05014.61
5.3.250.0200.06014.65
5.3.240.0270.05714.71
5.3.230.0330.04314.70
5.3.220.0300.07314.59
5.3.210.0330.06014.61
5.3.200.0300.05014.70
5.3.190.0230.05714.59
5.3.180.0400.04014.58
5.3.170.0400.05014.70
5.3.160.0430.04714.59
5.3.150.0330.06014.62
5.3.140.0330.05714.72
5.3.130.0270.05714.65
5.3.120.0430.04714.68
5.3.110.0500.04714.73
5.3.100.0300.06014.15
5.3.90.0230.07014.09
5.3.80.0230.06014.08
5.3.70.0270.06314.05
5.3.60.0470.06313.99
5.3.50.0500.05714.17
5.3.40.0330.06014.00
5.3.30.0370.05313.91
5.3.20.0370.05713.79
5.3.10.0230.07313.64
5.3.00.0430.04013.63
5.2.170.0370.05311.20
5.2.160.0230.04711.14
5.2.150.0330.04311.13
5.2.140.0170.04311.20
5.2.130.0270.04011.12
5.2.120.0170.04311.13
5.2.110.0200.05311.14
5.2.100.0200.06311.32
5.2.90.0330.02711.23
5.2.80.0170.04711.30
5.2.70.0230.04011.20
5.2.60.0200.04711.07
5.2.50.0270.05311.24
5.2.40.0170.04311.12
5.2.30.0300.05010.99
5.2.20.0200.04711.04
5.2.10.0270.03710.89
5.2.00.0230.04010.82
5.1.60.0270.03010.13
5.1.50.0130.04310.04
5.1.40.0270.04310.08
5.1.30.0300.05010.41
5.1.20.0300.05010.48
5.1.10.0330.03710.11
5.1.00.0200.03710.10
5.0.50.0100.0378.65
5.0.40.0070.0308.41
5.0.30.0070.0508.25
5.0.20.0130.0238.20
5.0.10.0170.0278.16
5.0.00.0230.0438.14
4.4.90.0100.0306.05
4.4.80.0100.0236.05
4.4.70.0030.0336.05
4.4.60.0030.0276.05
4.4.50.0030.0236.05
4.4.40.0070.0406.05
4.4.30.0100.0236.05
4.4.20.0000.0276.05
4.4.10.0100.0206.05
4.4.00.0030.0436.05
4.3.110.0170.0136.05
4.3.100.0130.0206.05
4.3.90.0030.0236.05
4.3.80.0030.0376.05
4.3.70.0070.0206.05
4.3.60.0100.0176.05
4.3.50.0030.0276.05
4.3.40.0100.0306.05
4.3.30.0030.0236.05
4.3.20.0000.0276.05
4.3.10.0030.0236.05
4.3.00.0100.0236.97

preferences:
36.7 ms | 401 KiB | 5 Q