3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Container{ private $callables =[]; public function __set(string $name,$value){ if($value instanceof Closure){ $this->callables[$name] = $value; } } public function __call(string $method, array $args){ if(isset($this->callables[$method])){ $callable = $this->callables[$method]; $callable($args); } } } $container = new Container(); $container->demo = function(){ return new Caontainer(); }; var_dump($container->demo());

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.0030.01216.63
8.3.50.0140.00721.90
8.3.40.0110.00318.93
8.3.30.0090.00618.84
8.3.20.0040.00420.09
8.3.10.0040.00423.65
8.3.00.0030.00620.03
8.2.180.0130.00318.41
8.2.170.0140.00722.96
8.2.160.0090.00920.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00019.21
8.2.120.0000.00826.35
8.2.110.0000.00920.53
8.2.100.0040.00817.93
8.2.90.0080.00019.25
8.2.80.0030.00517.97
8.2.70.0090.00017.75
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0000.00822.18
8.2.30.0050.00220.68
8.2.20.0000.00717.88
8.2.10.0040.00418.11
8.2.00.0040.00418.00
8.1.280.0110.01125.92
8.1.270.0050.00320.33
8.1.260.0050.00228.09
8.1.250.0000.00728.09
8.1.240.0060.00320.88
8.1.230.0040.00717.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0070.00018.53
8.1.160.0040.00420.81
8.1.150.0030.00618.94
8.1.140.0000.00819.55
8.1.130.0070.00017.63
8.1.120.0000.00717.45
8.1.110.0040.00417.45
8.1.100.0080.00017.46
8.1.90.0000.00717.52
8.1.80.0000.01117.34
8.1.70.0030.00317.36
8.1.60.0000.00717.46
8.1.50.0000.00817.55
8.1.40.0060.00317.52
8.1.30.0080.00017.58
8.1.20.0040.00417.67
8.1.10.0080.00017.58
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.25
8.0.270.0000.00717.23
8.0.260.0070.00017.17
8.0.250.0000.00716.96
8.0.240.0030.00316.86
8.0.230.0040.00416.91
8.0.220.0070.00016.86
8.0.210.0070.00016.76
8.0.200.0030.00616.88
8.0.190.0040.00716.89
8.0.180.0070.00016.90
8.0.170.0000.00817.07
8.0.160.0070.00016.94
8.0.150.0000.00716.85
8.0.140.0050.00316.80
8.0.130.0000.00613.42
8.0.120.0040.00416.90
8.0.110.0050.00317.00
8.0.100.0040.00417.06
8.0.90.0050.00317.02
8.0.80.0060.01616.89
8.0.70.0040.00416.82
8.0.60.0000.00816.92
8.0.50.0070.00016.75
8.0.30.0130.00617.19
8.0.20.0100.01017.40
8.0.10.0040.00417.02
8.0.00.0110.00616.79
7.4.330.0060.00016.79
7.4.320.0030.00316.49
7.4.300.0070.00316.64
7.4.290.0030.00316.48
7.4.280.0040.00416.64
7.4.270.0030.00316.50
7.4.260.0070.00016.41
7.4.250.0080.00016.59
7.4.240.0040.00316.54
7.4.230.0000.00716.25
7.4.220.0090.00916.71
7.4.210.0130.00316.45
7.4.200.0000.00716.57
7.4.160.0080.00816.72
7.4.150.0150.00417.40
7.4.140.0100.01017.86
7.4.130.0170.02016.59
7.4.120.0080.00916.55
7.4.110.0040.01516.49
7.4.100.0140.00316.60
7.4.90.0140.00316.55
7.4.80.0030.01519.39
7.4.70.0180.00316.52
7.4.60.0120.00616.43
7.4.50.0080.00816.61
7.4.40.0030.01316.52
7.4.30.0040.01316.55
7.4.00.0060.00615.20
7.3.330.0000.00513.35
7.3.320.0000.00513.29
7.3.310.0000.00716.32
7.3.300.0030.00316.43
7.3.290.0070.00716.41
7.3.280.0110.00816.44
7.3.270.0180.00017.40
7.3.260.0140.01016.46
7.3.250.0090.00916.56
7.3.240.0050.01116.64
7.3.230.0000.01716.59
7.3.210.0120.00616.57
7.3.200.0120.00916.38
7.3.190.0030.01316.54
7.3.180.0070.01016.46
7.3.170.0090.00916.60
7.3.160.0100.00616.61
7.2.330.0130.00616.79
7.2.320.0090.00716.63
7.2.310.0040.01216.68
7.2.300.0090.00916.83
7.2.290.0130.00316.80
7.2.60.0000.01416.79
7.2.00.0000.01019.47
7.1.200.0080.00015.99
7.1.100.0070.00718.04
7.1.70.0000.00817.34
7.1.60.0070.01719.44
7.1.50.0140.01117.11
7.1.00.0130.06322.43
7.0.200.0000.01016.63
7.0.60.0030.04020.02
7.0.50.0070.04317.89
7.0.40.0100.07320.11
7.0.30.0170.05320.07
7.0.20.0230.06020.19
7.0.10.0070.05720.23
7.0.00.0100.03720.29
5.6.280.0030.03320.93
5.6.210.0100.07320.50
5.6.200.0070.08718.16
5.6.190.0030.08720.38
5.6.180.0130.05020.57
5.6.170.0130.04320.54
5.6.160.0100.06020.57
5.6.150.0100.07718.18
5.6.140.0100.03718.15
5.6.130.0070.08318.14
5.6.120.0030.06321.01
5.6.110.0030.08321.12
5.6.100.0100.07721.13
5.6.90.0200.07020.95
5.6.80.0030.08020.54
5.5.350.0100.04720.42
5.5.340.0000.06717.98
5.5.330.0070.07720.21
5.5.320.0230.08020.38
5.5.310.0130.08320.34
5.5.300.0030.07317.98
5.5.290.0130.07017.95
5.5.280.0030.05020.89
5.5.270.0100.03720.84
5.5.260.0070.08320.66
5.5.250.0030.04720.59
5.5.240.4030.04020.27

preferences:
47.13 ms | 401 KiB | 5 Q