3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Beer { const NAME = 'Beer!'; public static function printed(){ echo 'static Beer:NAME = '. static::NAME . PHP_EOL; } } class Ale extends Beer { const NAME = 'Ale!'; public static function printed(){ forward_static_call(array('parent','printed')); call_user_func(array('parent','printed')); forward_static_call(array('Beer','printed')); call_user_func(array('Beer','printed')); } public static function yeah() { echo 'yeah!'.PHP_EOL; } } Ale::printed(); echo 'ASDASD'. PHP_EOL; $asd = new Ale(); call_user_func($asd, 'yeah');

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.70.0100.01018.56
8.3.60.0090.01216.88
8.3.50.0140.00616.54
8.3.40.0060.01018.97
8.3.30.0110.00418.73
8.3.20.0040.00421.91
8.3.10.0050.00323.70
8.3.00.0080.00019.44
8.2.180.0070.01418.27
8.2.170.0070.01122.96
8.2.160.0120.00320.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00720.51
8.2.120.0060.00326.35
8.2.110.0000.01020.58
8.2.100.0050.00517.91
8.2.90.0080.00018.97
8.2.80.0060.00318.04
8.2.70.0030.00517.75
8.2.60.0050.00318.05
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0030.00519.18
8.2.20.0000.00717.94
8.2.10.0000.00718.17
8.2.00.0000.00718.02
8.1.280.0070.01125.92
8.1.270.0080.00020.73
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00622.68
8.1.230.0030.00919.05
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00617.25
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0030.00318.92
8.1.150.0000.00820.55
8.1.140.0040.00419.54
8.1.130.0000.00720.67
8.1.120.0030.00417.44
8.1.110.0040.00417.41
8.1.100.0040.00417.48
8.1.90.0000.01017.49
8.1.80.0000.00817.50
8.1.70.0070.00017.51
8.1.60.0020.00517.59
8.1.50.0050.00317.52
8.1.40.0030.00617.40
8.1.30.0030.00517.71
8.1.20.0040.00417.57
8.1.10.0030.00617.51
8.1.00.0070.00017.45
8.0.300.0070.00018.77
8.0.290.0030.00516.60
8.0.280.0030.00318.46
8.0.270.0070.00017.20
8.0.260.0000.00618.81
8.0.250.0000.00817.06
8.0.240.0000.00717.03
8.0.230.0000.00716.98
8.0.220.0040.00416.95
8.0.210.0000.00716.95
8.0.200.0030.00316.98
8.0.190.0030.00616.88
8.0.180.0000.00716.87
8.0.170.0000.00816.88
8.0.160.0000.00716.92
8.0.150.0070.00016.79
8.0.140.0040.00416.83
8.0.130.0040.00413.39
8.0.120.0000.00916.88
8.0.110.0040.00416.95
8.0.100.0040.00417.02
8.0.90.0040.00416.96
8.0.80.0190.00016.93
8.0.70.0040.00416.86
8.0.60.0020.00516.74
8.0.50.0040.00416.87
8.0.30.0100.01117.17
8.0.20.0100.01317.40
8.0.10.0000.00716.93
8.0.00.0120.00916.75
7.4.330.0000.00515.55
7.4.320.0090.00016.66
7.4.300.0030.00316.46
7.4.290.0070.00016.52
7.4.280.0040.00416.51
7.4.270.0070.00016.49
7.4.260.0030.00616.52
7.4.250.0040.00416.42
7.4.240.0030.00516.61
7.4.230.0070.00016.42
7.4.220.0090.01516.56
7.4.210.0080.00616.57
7.4.200.0040.00416.63
7.4.160.0090.00616.70
7.4.150.0120.00617.40
7.4.140.0120.01017.86
7.4.130.0090.01616.57
7.4.120.0100.01316.46
7.4.110.0100.00616.49
7.4.100.0060.01216.55
7.4.90.0090.00816.50
7.4.80.0160.00619.39
7.4.70.0160.00016.48
7.4.60.0080.01516.60
7.4.50.0110.00316.26
7.4.40.0060.01116.59
7.4.30.0090.01016.56
7.4.00.0000.01614.82
7.3.330.0050.00013.37
7.3.320.0000.00613.32
7.3.310.0030.00316.40
7.3.300.0000.00716.32
7.3.290.0040.01216.35
7.3.280.0090.00816.32
7.3.270.0090.00917.40
7.3.260.0100.01016.37
7.3.250.0150.00716.29
7.3.240.0060.01016.35
7.3.230.0130.00516.28
7.3.210.0090.00916.31
7.3.200.0090.00916.34
7.3.190.0070.01516.32
7.3.180.0080.01816.52
7.3.170.0120.00316.46
7.3.160.0070.01016.39
7.2.330.0130.00616.80
7.2.320.0050.01116.53
7.2.310.0060.01016.75
7.2.300.0100.00716.58
7.2.290.0080.00816.31
7.2.60.0000.01216.70
7.2.00.0060.00819.49
7.1.200.0070.00315.75
7.1.70.0030.00316.83
7.1.60.0770.01733.19
7.1.50.1130.01033.02
7.1.40.1130.01332.55
7.1.30.1730.01032.64
7.1.20.1200.02032.54
7.1.10.0930.00714.55
7.1.00.1070.01314.55
7.0.200.1100.02014.56
7.0.190.1270.00714.95
7.0.180.0900.00314.45
7.0.170.1330.01314.62
7.0.160.1400.01714.48
7.0.150.1170.00714.33
7.0.140.0970.01014.39
7.0.130.1170.01714.68
7.0.120.0930.00714.57
7.0.110.1130.01014.66
7.0.100.1000.00714.48
7.0.90.1100.00314.51
7.0.80.1230.01014.70
7.0.70.1070.00714.25
7.0.60.1370.01314.40
7.0.50.0970.01014.44
7.0.40.0900.01314.74
7.0.30.0900.01314.73
7.0.20.1070.01314.73
7.0.10.1230.01014.52
7.0.00.1130.01014.61

preferences:
57.93 ms | 401 KiB | 5 Q