3v4l.org

run code in 300+ PHP versions simultaneously
<?php class y { static function a() { // display the current class echo __METHOD__; } } class x extends y { static function b($method) { // display the current class with method a above call_user_func($method); $method(); } } (new x)->b(array('parent', 'a')); ?>

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.0170.00718.55
8.3.50.0090.00618.18
8.3.40.0070.01018.82
8.3.30.0070.00718.68
8.3.20.0040.00421.91
8.3.10.0040.00423.33
8.3.00.0080.00023.71
8.2.180.0040.01118.26
8.2.170.0110.01122.96
8.2.160.0030.01020.39
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00019.41
8.2.110.0030.00620.87
8.2.100.0000.01219.64
8.2.90.0040.00420.46
8.2.80.0030.00517.97
8.2.70.0040.00418.04
8.2.60.0040.00418.16
8.2.50.0060.00318.10
8.2.40.0030.00619.47
8.2.30.0000.00719.11
8.2.20.0050.00217.89
8.2.10.0070.00020.50
8.2.00.0040.00419.39
8.1.280.0080.00825.92
8.1.270.0030.00518.88
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00023.95
8.1.230.0040.00820.98
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.10
8.1.190.0050.00517.13
8.1.180.0040.00418.10
8.1.170.0030.00518.52
8.1.160.0000.00718.72
8.1.150.0000.00718.73
8.1.140.0040.00322.05
8.1.130.0030.00319.95
8.1.120.0040.00417.20
8.1.110.0050.00317.21
8.1.100.0040.00417.19
8.1.90.0040.00417.30
8.1.80.0080.00017.30
8.1.70.0020.00517.22
8.1.60.0080.00017.42
8.1.50.0050.00517.43
8.1.40.0040.00417.46
8.1.30.0030.00517.63
8.1.20.0090.00317.52
8.1.10.0050.00317.51
8.1.00.0040.00417.33
8.0.300.0040.00419.77
8.0.290.0040.00416.63
8.0.280.0030.00318.35
8.0.270.0040.00417.22
8.0.260.0000.00618.36
8.0.250.0030.00316.86
8.0.240.0000.00716.84
8.0.230.0030.00316.99
8.0.220.0050.00316.90
8.0.210.0070.00016.80
8.0.200.0070.00016.97
8.0.190.0030.00316.78
8.0.180.0040.00416.88
8.0.170.0030.00616.95
8.0.160.0040.00416.93
8.0.150.0050.00316.84
8.0.140.0000.00716.89
8.0.130.0030.00313.20
8.0.120.0040.00416.87
8.0.110.0040.00416.75
8.0.100.0030.00516.76
8.0.90.0070.00016.89
8.0.80.0070.00916.89
8.0.70.0000.00716.71
8.0.60.0040.00416.79
8.0.50.0000.00816.94
8.0.30.0150.00417.04
8.0.20.0090.00916.77
8.0.10.0030.00516.84
8.0.00.0110.01116.78
7.4.330.0050.00016.89
7.4.320.0030.00316.54
7.4.300.0000.00816.57
7.4.290.0030.00516.48
7.4.280.0050.00216.64
7.4.270.0020.00516.37
7.4.260.0000.00716.49
7.4.250.0040.00416.37
7.4.240.0040.00416.50
7.4.230.0070.00016.70
7.4.220.0050.00316.70
7.4.210.0030.01116.53
7.4.200.0050.00216.34
7.4.160.0110.00716.53
7.4.140.0120.00917.86
7.4.130.0070.01016.38
7.4.120.0080.00816.55
7.4.110.0140.00416.48
7.4.100.0030.01516.27
7.4.90.0070.01016.31
7.4.80.0060.01219.39
7.4.70.0150.00416.57
7.4.60.0090.00616.56
7.4.50.0110.00416.20
7.4.40.0130.00916.58
7.4.00.0050.00514.70
7.3.330.0030.00313.30
7.3.320.0060.00013.30
7.3.310.0000.00716.25
7.3.300.0030.00316.31
7.3.290.0040.00416.37
7.3.280.0070.00716.27
7.3.260.0100.00616.41
7.3.240.0100.00616.37
7.3.230.0090.00916.67
7.3.210.0100.00716.33
7.3.200.0030.01316.39
7.3.190.0130.00616.51
7.3.180.0120.00616.45
7.3.170.0100.00716.53
7.3.160.0030.01416.45
7.3.00.0410.00614.40
7.2.330.0070.01016.64
7.2.320.0060.01216.56
7.2.310.0140.00316.26
7.2.300.0090.00616.18
7.2.290.0040.01916.67
7.2.130.0370.01414.40
7.2.120.0290.01014.18
7.2.110.0340.00014.36
7.2.100.0320.01114.32
7.2.90.0240.01014.18
7.2.80.0240.00714.28
7.2.70.0310.00814.47
7.2.60.0340.00314.40
7.2.50.0240.00714.88
7.2.40.0290.01014.93
7.2.30.0340.01314.78
7.2.20.0420.01314.86
7.2.10.0450.01014.88
7.2.00.0460.01114.87
7.1.250.0320.00613.51
7.0.330.1030.00613.04
5.6.380.0080.00414.09

preferences:
57.27 ms | 401 KiB | 5 Q