3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyParent { public function whoami() { echo get_class($this); } } class MyChild extends MyParent { public function whoami() { echo "Don't call me now!"; parent::whoami(); } } $m = new reflectionMethod('MyParent', 'whoami'); $m->invoke(new MyChild);

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.120.0130.00620.61
8.4.110.0140.00618.74
8.4.100.0050.00417.77
8.4.90.0120.00920.41
8.4.80.0040.00418.94
8.4.70.0040.00520.64
8.4.60.0140.00820.76
8.4.50.0140.00617.79
8.4.40.0070.01019.52
8.4.30.0100.01017.32
8.4.20.0170.00317.82
8.4.10.0040.00420.18
8.3.250.0130.00518.89
8.3.240.0110.00916.36
8.3.230.0100.00816.53
8.3.220.0120.00518.68
8.3.210.0130.00716.69
8.3.200.0080.00716.46
8.3.190.0120.00716.29
8.3.180.0050.00318.25
8.3.170.0030.00616.73
8.3.160.0110.00318.32
8.3.150.0060.00317.02
8.3.140.0140.00420.71
8.3.130.0050.00318.30
8.3.120.0100.01018.82
8.3.110.0070.00720.94
8.3.100.0060.00924.06
8.3.90.0090.00026.77
8.3.80.0040.00417.97
8.3.70.0150.00017.93
8.3.60.0110.00316.22
8.3.50.0140.00721.99
8.3.40.0100.01018.73
8.3.30.0060.00918.54
8.3.20.0080.00018.99
8.3.10.0070.00021.77
8.3.00.0050.00322.39
8.2.290.0100.00816.99
8.2.280.0060.00218.35
8.2.270.0120.00916.38
8.2.260.0120.00616.31
8.2.250.0130.00318.52
8.2.240.0090.00917.05
8.2.230.0040.00722.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0090.00016.50
8.2.190.0110.00416.88
8.2.180.0070.01416.88
8.2.170.0120.00622.96
8.2.160.0070.01020.95
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00422.11
8.2.120.0000.00726.35
8.2.110.0060.00319.30
8.2.100.0130.00018.22
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00817.63
8.2.50.0080.00017.55
8.2.40.0040.00422.46
8.2.30.0000.00719.19
8.2.20.0040.00417.79
8.2.10.0040.00417.98
8.2.00.0000.00717.93
8.1.330.0100.00618.31
8.1.320.0110.00815.80
8.1.310.0060.01216.84
8.1.300.0090.00918.17
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0040.00423.84
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.00
8.1.230.0090.00322.68
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0050.00317.13
8.1.180.0000.00918.10
8.1.170.0060.00318.59
8.1.160.0000.00722.14
8.1.150.0040.00418.87
8.1.140.0040.00419.52
8.1.130.0030.00617.64
8.1.120.0080.00017.37
8.1.110.0060.00317.38
8.1.100.0000.00817.31
8.1.90.0040.00417.41
8.1.80.0000.00717.36
8.1.70.0000.00717.38
8.1.60.0000.00817.49
8.1.50.0030.00617.55
8.1.40.0000.00817.54
8.1.30.0090.00017.54
8.1.20.0000.00717.65
8.1.10.0080.00017.57
8.1.00.0000.00817.56
8.0.300.0040.00419.65
8.0.290.0030.00716.63
8.0.280.0000.00718.41
8.0.270.0070.00017.31
8.0.260.0040.00417.30
8.0.250.0000.00717.02
8.0.240.0080.00016.94
8.0.230.0040.00416.81
8.0.220.0070.00016.70
8.0.210.0000.00716.82
8.0.200.0030.00316.88
8.0.190.0070.00316.77
8.0.180.0000.00716.84
8.0.170.0000.00816.92
8.0.160.0040.00416.73
8.0.150.0040.00416.69
8.0.140.0040.00416.76
8.0.130.0030.00313.29
8.0.120.0000.00816.78
8.0.110.0040.00416.80
8.0.100.0040.00416.63
8.0.90.0000.00716.82
8.0.80.0090.00916.82
8.0.70.0070.00016.80
8.0.60.0050.00216.88
8.0.50.0030.00516.72
8.0.30.0090.00917.04
8.0.20.0110.00717.40
8.0.10.0040.00416.84
8.0.00.0100.00716.77
7.4.330.0050.00015.08
7.4.320.0000.00716.52
7.4.300.0070.00016.52
7.4.290.0050.00216.40
7.4.280.0040.00416.63
7.4.270.0030.00316.37
7.4.260.0000.00716.60
7.4.250.0000.00716.55
7.4.240.0030.00316.61
7.4.230.0070.00016.37
7.4.220.0140.01416.42
7.4.210.0050.01416.51
7.4.200.0030.00316.72
7.4.160.0090.00616.56
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0090.01016.54
7.4.120.0120.00716.39
7.4.110.0060.01216.52
7.4.100.0120.01216.43
7.4.90.0000.01716.35
7.4.80.0080.01519.39
7.4.70.0090.01216.49
7.4.60.0130.00716.60
7.4.50.0000.01116.59
7.4.40.0110.01116.52
7.4.30.0150.00516.49
7.4.00.0070.00714.74
7.3.330.0070.00013.09
7.3.320.0050.00313.21
7.3.310.0000.00816.19
7.3.300.0000.00716.24
7.3.290.0080.00616.26
7.3.280.0090.00816.21
7.3.270.0100.01317.40
7.3.260.0140.00916.25
7.3.250.0110.00816.29
7.3.240.0060.01016.39
7.3.230.0100.00716.50
7.3.210.0110.00916.34
7.3.200.0120.00316.25
7.3.190.0150.00616.23
7.3.180.0090.00916.25
7.3.170.0140.00816.38
7.3.160.0100.00616.59
7.2.330.0030.01516.44
7.2.320.0140.00416.66
7.2.310.0060.00916.75
7.2.300.0070.01016.36
7.2.290.0000.01616.28
7.2.60.0070.00716.50
7.1.200.0000.01315.57
7.1.70.0040.00416.82
7.1.60.0060.00619.81
7.1.00.0100.06722.43
7.0.200.0080.00614.63
7.0.100.1130.05720.01
7.0.90.0070.06320.00
7.0.80.0100.05720.18
7.0.70.0170.05020.01
7.0.60.0230.05720.12
7.0.50.0030.06020.25
7.0.40.0270.05020.30
7.0.30.0230.05720.44
7.0.20.0200.06720.31
7.0.10.0100.06720.20
7.0.00.0270.05320.29
5.6.250.0100.05720.60
5.6.240.0130.07720.67
5.6.230.0030.07020.63
5.6.220.0100.06020.50
5.6.210.0100.06320.87
5.6.200.0100.06021.13
5.6.190.0130.05321.18
5.6.180.0200.05021.20
5.6.170.0200.04721.08
5.6.160.0200.04721.02
5.6.150.0030.06321.08
5.6.140.0100.05721.02
5.6.130.0170.06721.09
5.6.120.0100.06021.13
5.6.110.0030.06720.97
5.6.100.0130.06321.00
5.6.90.0030.06721.07
5.6.80.0200.06720.46
5.6.70.0100.05320.46
5.6.60.0070.06020.43
5.6.50.0130.05020.46
5.6.40.0200.06720.38
5.6.30.0000.06320.45
5.6.20.0070.06020.42
5.6.10.0030.05720.52
5.6.00.0070.05320.38

preferences:
27.87 ms | 403 KiB | 5 Q