3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { // Do something conditionally if a child class has implemented a certain method. if (is_callable('static::methodName')) { static::methodName(); } } } (new Foo())->bar();

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.0120.00724.15
8.4.110.0060.00320.79
8.4.100.0050.00417.57
8.4.90.0120.00920.60
8.4.80.0070.00218.83
8.4.70.0250.00618.53
8.4.60.0200.01019.26
8.4.50.0240.00919.21
8.4.40.0230.01018.83
8.4.30.0220.01118.25
8.4.20.0290.00518.04
8.4.10.0280.00519.91
8.3.250.0070.00218.64
8.3.240.0070.01216.95
8.3.230.0130.00616.54
8.3.220.0110.00218.87
8.3.210.0240.00717.38
8.3.200.0130.00517.22
8.3.190.0170.00617.54
8.3.180.0100.00419.41
8.3.170.0230.00519.22
8.3.160.0220.01017.52
8.3.150.0140.00917.71
8.3.140.0130.00517.28
8.3.130.0150.00518.17
8.3.120.0120.00618.51
8.3.110.0180.00719.50
8.3.100.0170.00921.06
8.3.90.0210.00522.42
8.3.80.0230.00417.41
8.3.70.0240.00817.35
8.3.60.0260.00817.28
8.3.50.0220.00818.37
8.3.40.0220.01018.41
8.3.30.0230.00618.58
8.3.20.0170.00421.13
8.3.10.0170.00521.37
8.3.00.0210.00422.11
8.2.290.0140.00420.20
8.2.280.0190.00618.21
8.2.270.0230.00417.71
8.2.260.0160.00818.42
8.2.250.0180.00617.49
8.2.240.0210.01118.42
8.2.230.0160.00520.32
8.2.220.0150.00527.80
8.2.210.0160.00922.42
8.2.200.0220.00217.35
8.2.190.0220.00918.30
8.2.180.0160.01221.99
8.2.170.0240.00418.45
8.2.160.0190.00820.52
8.2.150.0180.00621.87
8.2.140.0160.00621.37
8.2.130.0210.00422.11
8.2.120.0200.00619.38
8.2.110.0190.00718.62
8.2.100.0220.00517.83
8.2.90.0190.00718.49
8.2.80.0190.00518.02
8.2.70.0210.00517.72
8.2.60.0300.00417.94
8.2.50.0220.00618.07
8.2.40.0160.00719.00
8.2.30.0190.00518.03
8.2.20.0180.00319.20
8.2.10.0130.01017.99
8.2.00.0130.00419.57
8.1.330.0050.00522.08
8.1.320.0210.01017.10
8.1.310.0210.00618.03
8.1.300.0170.01218.00
8.1.290.0170.00924.45
8.1.280.0190.01021.99
8.1.270.0140.00821.03
8.1.260.0130.00622.21
8.1.250.0170.00523.08
8.1.240.0180.00420.93
8.1.230.0170.00817.91
8.1.220.0130.00617.90
8.1.210.0140.00818.42
8.1.200.0160.00717.65
8.1.190.0160.00617.65
8.1.180.0160.00718.08
8.1.170.0190.00518.29
8.1.160.0160.00718.37
8.1.150.0160.00718.26
8.1.140.0150.00317.69
8.1.130.0120.00419.31
8.1.120.0140.00917.69
8.1.110.0140.00817.64
8.1.100.0130.00917.65
8.1.90.0190.00717.69
8.1.80.0110.01217.68
8.1.70.0200.00617.71
8.1.60.0130.00517.68
8.1.50.0140.00617.51
8.1.40.0110.00917.53
8.1.30.0180.00517.69
8.1.20.0200.00517.63
8.1.10.0200.00617.53
8.1.00.0170.00817.47
8.0.300.0170.00418.42
8.0.290.0180.00317.41
8.0.280.0140.00818.20
8.0.270.0210.00418.00
8.0.260.0170.00718.15
8.0.250.0150.00517.42
8.0.240.0170.00517.50
8.0.230.0150.00617.39
8.0.220.0190.00417.39
8.0.210.0170.00517.43
8.0.200.0140.00817.42
8.0.190.0170.00617.38
8.0.180.0180.00517.06
8.0.170.0190.00417.04
8.0.160.0170.00617.03
8.0.150.0180.00617.02
8.0.140.0200.00517.02
8.0.130.0220.00517.02
8.0.120.0200.00616.96
8.0.110.0190.00717.04
8.0.100.0170.00917.04
8.0.90.0200.00717.03
8.0.80.0200.00616.99
8.0.70.0150.00717.04
8.0.60.0150.00617.02
8.0.50.0160.00516.96
8.0.30.0180.00416.99
8.0.20.0190.00417.06
8.0.10.0160.00517.15
7.4.330.0140.00316.81
7.4.320.0110.00317.25
7.4.300.0170.00317.30
7.4.290.0190.00416.84
7.4.280.0200.00516.80
7.4.270.0160.00716.82
7.4.260.0170.00616.82
7.4.250.0160.00516.80
7.4.240.0100.00716.87
7.4.230.0160.00516.90
7.4.220.0150.00716.82
7.4.210.0140.00716.81
7.4.200.0120.00616.83
7.4.190.0160.00416.86
7.4.180.0180.00516.80
7.4.160.0160.00416.81
7.4.150.0140.00516.76
7.4.140.0170.00516.69
7.4.130.0160.00516.72
7.4.120.0180.00716.74
7.4.110.0170.00516.77
7.4.100.0220.00316.74
7.4.90.0200.00516.69
7.4.80.0180.00616.72
7.4.70.0180.00516.76
7.4.60.0230.00216.75
7.4.50.0180.00516.63
7.4.40.0170.00516.67
7.4.30.0170.00516.74
7.4.20.0160.00616.68
7.4.10.0150.00716.73
7.4.00.0180.00516.75

preferences:
26.37 ms | 403 KiB | 5 Q