3v4l.org

run code in 300+ PHP versions simultaneously
<?php class render { /** @var array */ private static $extensions; public static function __callStatic($function, $args) { // check if method exists if ( method_exists( __CLASS__, $function )) { self::{$function}(self::$args); } elseif (isset(self::$extensions[$function])) { (self::$extensions[$function])($args); } } public static function title($args) { echo 'Calling title()', PHP_EOL; } public static function register(string $name, callable $callback) { self::$extensions[$name] = $callback; } } render::register('custom', function(...$args) { echo 'Calling custom function', PHP_EOL; var_dump($args); }); render::title(1, 2, 3, 4); render::custom(1, 2, 3, 4);

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.5.10.0110.00816.62
8.5.00.0200.00820.18
8.4.150.0010.00214.05
8.4.140.0130.00719.57
8.4.130.0120.00817.86
8.4.120.0120.01023.98
8.4.110.0120.00820.51
8.4.100.0050.00418.84
8.4.90.0100.01018.82
8.4.80.0130.00718.77
8.4.70.0090.00618.19
8.4.60.0110.01018.93
8.4.50.0100.01118.91
8.4.40.0090.00617.67
8.4.30.0050.00318.82
8.4.20.0160.00317.82
8.4.10.0160.00319.50
8.3.280.0160.00518.57
8.3.270.0130.00816.79
8.3.260.0130.00616.56
8.3.250.0110.00719.05
8.3.240.0110.00817.34
8.3.230.0130.00616.67
8.3.220.0090.00619.04
8.3.210.0090.01016.37
8.3.200.0040.00416.71
8.3.190.0110.00717.16
8.3.180.0070.01116.57
8.3.170.0040.00420.56
8.3.160.0070.01117.15
8.3.150.0040.01417.16
8.3.140.0110.00416.45
8.3.130.0030.00616.49
8.3.120.0100.00020.80
8.3.110.0130.00716.45
8.3.100.0030.00616.50
8.3.90.0080.00026.77
8.3.80.0030.00618.68
8.3.70.0120.00318.43
8.3.60.0160.00618.43
8.3.50.0160.00524.56
8.3.40.0030.01318.64
8.3.30.0070.00718.79
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00620.55
8.2.280.0100.01118.43
8.2.270.0110.00719.01
8.2.260.0060.01216.47
8.2.250.0110.00418.48
8.2.240.0090.00917.48
8.2.230.0050.00320.94
8.2.220.0060.00324.06
8.2.210.0040.01126.77
8.2.200.0030.00618.41
8.2.190.0150.00316.63
8.2.180.0140.00725.92
8.2.170.0070.01118.84
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0110.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00326.35
8.2.110.0100.00020.44
8.2.100.0060.00618.03
8.2.90.0040.00417.88
8.2.80.0050.00318.77
8.2.70.0000.00817.68
8.2.60.0060.00318.28
8.2.50.0050.00518.10
8.2.40.0020.00519.36
8.2.30.0050.00319.25
8.2.20.0000.00818.01
8.2.10.0040.00419.24
8.2.00.0000.00719.38
8.1.330.0080.00821.72
8.1.320.0080.01116.09
8.1.310.0000.00818.61
8.1.300.0100.01018.52
8.1.290.0070.00730.84
8.1.280.0170.00025.92
8.1.270.0030.00623.99
8.1.260.0050.00228.09
8.1.250.0030.00728.09
8.1.240.0100.00022.13
8.1.230.0070.00322.05
8.1.220.0030.00517.79
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0060.00318.56
8.1.160.0000.00718.94
8.1.150.0050.00218.95
8.1.140.0050.00218.88
8.1.130.0030.00320.22
8.1.120.0000.00817.39
8.1.110.0030.00517.33
8.1.100.0070.00017.39
8.1.90.0080.00017.33
8.1.80.0040.00417.43
8.1.70.0060.00317.41
8.1.60.0050.00317.42
8.1.50.0030.00617.48
8.1.40.0000.00817.46
8.1.30.0000.00817.53
8.1.20.0040.00417.49
8.1.10.0040.00417.59
8.1.00.0000.00917.45
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0040.00418.36
8.0.270.0070.00016.88
8.0.260.0030.00318.47
8.0.250.0030.00316.97
8.0.240.0000.00816.85
8.0.230.0000.00716.98
8.0.220.0000.00816.83
8.0.210.0000.00916.78
8.0.200.0000.00716.90
8.0.190.0000.00817.04
8.0.180.0040.00416.89
8.0.170.0090.00016.87
8.0.160.0040.00416.86
8.0.150.0030.00316.96
8.0.140.0080.00316.84
8.0.130.0030.00313.43
8.0.120.0070.00016.99
8.0.110.0040.00416.94
8.0.100.0080.00016.82
8.0.90.0040.00416.86
8.0.80.0070.00816.94
8.0.70.0000.00816.92
8.0.60.0050.00217.01
8.0.50.0000.00816.98
8.0.30.0030.01517.29
8.0.20.0070.01317.22
8.0.10.0000.00717.09
8.0.00.0180.00316.57
7.4.330.0000.00415.55
7.4.320.0050.00316.53
7.4.300.0000.00716.56
7.4.290.0030.00416.40
7.4.280.0030.00616.51
7.4.270.0070.00016.40
7.4.260.0000.00613.24
7.4.250.0040.00416.53
7.4.240.0070.00016.48
7.4.230.0000.00716.69
7.4.220.0040.00416.62
7.4.210.0030.01316.59
7.4.200.0050.00216.63
7.4.130.0100.00816.55
7.4.120.0040.01316.55
7.4.110.0140.00516.63
7.4.100.0090.00916.70
7.4.90.0100.00716.59
7.4.80.0120.00619.39
7.4.70.0070.01416.37
7.4.60.0180.00616.32
7.4.50.0160.00716.16
7.4.40.0120.01116.34
7.4.30.0100.01316.25
7.4.20.0120.00916.31
7.4.10.0130.01016.68
7.4.00.0070.01416.46
7.3.330.0000.00716.40
7.3.320.0000.00513.14
7.3.310.0000.00716.48
7.3.300.0030.00316.33
7.3.290.0090.00816.34
7.3.260.0100.01316.30
7.3.240.0110.00716.43
7.3.230.0280.02716.63
7.3.210.0140.00316.53
7.3.200.0080.00816.41
7.3.190.0080.01216.22
7.3.180.0140.00916.52
7.3.170.0120.01016.39
7.3.160.0120.01516.66
7.3.150.0140.00716.66
7.3.140.0160.00716.47
7.3.130.0180.00516.63
7.3.120.0090.01216.42
7.3.110.0100.01316.33
7.3.100.0170.00616.61
7.3.90.0030.01616.24
7.3.80.0080.01416.34
7.3.70.0070.01616.54
7.3.60.0110.01216.34
7.3.50.0130.00916.38
7.3.40.0120.00916.54
7.3.30.0130.01016.40
7.3.20.0160.00918.29
7.3.10.0100.01018.27
7.3.00.0170.00718.27
7.2.330.0090.01216.40
7.2.320.0040.01516.45
7.2.310.0180.00516.52
7.2.300.0060.01716.71
7.2.290.0000.02516.71
7.2.280.0040.02116.54
7.2.270.0130.01016.76
7.2.260.0140.00916.59
7.2.250.0150.00916.75
7.2.240.0140.00616.47
7.2.230.0090.01516.69
7.2.220.0110.01116.54
7.2.210.0110.01116.52
7.2.200.0190.00516.68
7.2.190.0060.01916.57
7.2.180.0140.01016.74
7.2.170.0080.01216.62
7.2.160.0090.01216.57
7.2.150.0100.01518.40
7.2.140.0210.00318.30
7.2.130.0080.01118.57
7.2.120.0120.01218.43
7.2.110.0170.00718.41
7.2.100.0180.01118.50
7.2.90.0150.00618.55
7.2.80.0090.01418.52
7.2.70.0030.02018.41
7.2.60.0070.01418.32
7.2.50.0200.00318.51
7.2.40.0120.01218.38
7.2.30.0030.01918.43
7.2.20.0190.00318.51
7.2.10.0070.01718.37
7.2.00.0100.01018.27

preferences:
40.35 ms | 403 KiB | 5 Q