3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call(array &$class, string $member, ...$args) { if(!isset($class[$member])) exit($member.' is not a member of the class.'); else { if(!is_callable($class[$member])) return $class[$member]; else { if(!isset($args[0])) $class[$member]($class); else $class[$member]($class, $args); } } } $obj = [ 'foo' => 'Hello', 'bar' => function (&$this) { $this['foo'] = ' World!'; } ]; echo(call($obj, 'foo')); call($obj, 'bar'); echo($obj['foo']);

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.0140.00316.88
8.3.50.0040.01116.09
8.3.40.0140.00018.60
8.3.30.0100.01018.36
8.3.20.0050.00220.16
8.3.10.0070.00021.72
8.3.00.0040.00423.71
8.2.180.0090.00618.18
8.2.170.0110.00722.96
8.2.160.0030.01020.52
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00021.10
8.2.120.0080.00026.35
8.2.110.0060.00319.31
8.2.100.0090.00317.80
8.2.90.0040.00419.11
8.2.80.0050.00317.97
8.2.70.0030.00617.36
8.2.60.0030.00617.80
8.2.50.0110.00018.09
8.2.40.0030.00522.23
8.2.30.0040.00419.31
8.2.20.0050.00217.49
8.2.10.0040.00417.86
8.2.00.0070.00017.78
8.1.280.0140.00025.92
8.1.270.0080.00022.01
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00020.64
8.1.230.0040.00817.64
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00617.10
8.1.190.0030.00616.88
8.1.180.0000.00918.10
8.1.170.0060.00318.46
8.1.160.0000.00820.63
8.1.150.0080.00018.67
8.1.140.0040.00419.43
8.1.130.0030.00617.50
8.1.120.0000.00717.37
8.1.110.0040.00417.21
8.1.100.0040.00417.34
8.1.90.0000.00817.21
8.1.80.0030.00717.30
8.1.70.0040.00417.22
8.1.60.0000.00817.44
8.1.50.0030.00517.38
8.1.40.0070.00417.28
8.1.30.0030.00617.51
8.1.20.0040.00417.54
8.1.10.0040.00417.36
8.1.00.0040.00417.17
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.31
8.0.270.0000.00717.08
8.0.260.0070.00017.02
8.0.250.0030.00316.80
8.0.240.0000.00816.78
8.0.230.0000.00716.91
8.0.220.0040.00416.82
8.0.210.0000.00816.81
8.0.200.0000.00616.92
8.0.190.0030.00316.88
8.0.180.0000.00716.84
8.0.170.0000.00816.93
8.0.160.0030.00516.81
8.0.150.0000.00816.73
8.0.140.0000.00716.80
8.0.130.0030.00313.21
8.0.120.0040.00416.68
8.0.110.0040.00416.72
8.0.100.0070.00016.79
8.0.90.0050.00316.70
8.0.80.0100.00616.87
8.0.70.0070.00016.70
8.0.60.0000.00816.69
8.0.50.0060.00316.65
8.0.30.0070.01117.00
8.0.20.0100.00817.40
8.0.10.0050.00316.92
8.0.00.0120.00616.73
7.4.330.0000.00516.83
7.4.320.0000.00716.38
7.4.300.0040.00416.47
7.4.290.0070.00016.39
7.4.280.0000.00916.48
7.4.270.0030.00316.30
7.4.260.0000.00716.25
7.4.250.0020.00516.26
7.4.240.0000.00716.48
7.4.230.0000.00716.47
7.4.220.0140.01116.27
7.4.210.0060.01216.45
7.4.200.0070.00016.28
7.4.160.0130.01016.36
7.4.150.0180.00017.40
7.4.140.0060.01117.86
7.4.130.0140.00916.37
7.4.120.0110.00616.42
7.4.110.0120.00616.51
7.4.100.0090.00916.27
7.4.90.0100.00716.43
7.4.80.0140.00419.39
7.4.70.0070.01016.46
7.4.60.0070.01016.30
7.4.50.0060.01016.49
7.4.40.0120.00916.59
7.4.30.0070.01016.55
7.4.00.0110.00814.81
7.3.330.0000.00613.21
7.3.320.0030.00313.20
7.3.310.0070.00016.29
7.3.300.0030.00316.18
7.3.290.0040.00416.28
7.3.280.0050.01216.22
7.3.270.0060.01217.40
7.3.260.0140.00316.24
7.3.250.0080.00816.24
7.3.240.0110.00616.23
7.3.230.0110.00816.39
7.3.210.0170.00016.40
7.3.200.0060.01319.39
7.3.190.0100.00716.27
7.3.180.0090.01216.42
7.3.170.0080.00916.42
7.3.160.0060.00916.27
7.3.120.0080.01014.65
7.3.110.0040.01414.74
7.3.100.0050.01014.57
7.3.90.0090.00414.87
7.3.80.0060.00614.65
7.3.70.0050.00414.71
7.3.60.0030.00814.70
7.3.50.0020.00914.69
7.3.40.0070.00614.71
7.3.30.0090.00314.53
7.3.20.0050.00916.45
7.3.10.0090.00516.61
7.3.00.0090.00416.54
7.2.330.0060.01216.33
7.2.320.0070.01016.39
7.2.310.0100.00916.56
7.2.300.0140.00316.26
7.2.290.0100.00616.47
7.2.250.0060.01314.88
7.2.240.0070.01314.73
7.2.230.0050.00714.89
7.2.220.0020.01214.88
7.2.210.0030.01114.86
7.2.200.0060.00414.86
7.2.190.0030.01014.82
7.2.180.0070.00514.84
7.2.170.0050.01014.73
7.2.160.0080.00814.67
7.2.150.0030.01216.82
7.2.140.0080.00416.43
7.2.130.0050.01116.56
7.2.120.0030.00816.84
7.2.110.0050.00816.73
7.2.100.0070.00716.57
7.2.90.0080.00616.79
7.2.80.0020.01216.65
7.2.70.0090.00316.67
7.2.60.0070.00816.69
7.2.50.0070.01016.57
7.2.40.0030.00916.85
7.2.30.0030.01116.70
7.2.20.0030.00916.52
7.2.10.0070.00516.63
7.2.00.0040.00817.57
7.1.330.0030.01015.51
7.1.320.0030.01215.45
7.1.310.0100.00515.58
7.1.300.0040.01015.63
7.1.290.0080.00315.50
7.1.280.0050.00715.48
7.1.270.0070.00815.52
7.1.260.0090.00515.54
7.1.250.0050.00515.57
7.1.200.0060.00615.55
7.1.100.0120.00917.82
7.1.70.0120.00017.00
7.1.60.0030.02019.40
7.1.50.0000.01516.67
7.1.00.0030.07322.36
7.0.200.2790.00014.75
7.0.60.0230.08321.80
7.0.50.0030.04017.72
7.0.40.0030.07020.13
7.0.30.0330.05320.26
7.0.20.0170.07320.23
7.0.10.0070.04720.22
7.0.00.0130.08320.06
5.6.280.0000.03721.13
5.6.210.0070.04020.52
5.6.200.0100.08018.23
5.6.190.0000.09720.56
5.6.180.0270.03720.52
5.6.170.0200.04320.45
5.6.160.0270.06720.54
5.6.150.0070.06318.27
5.6.140.0100.07718.15
5.6.130.0070.08018.21
5.6.120.0070.05721.10
5.6.110.0130.07321.15
5.6.100.0130.05721.05
5.6.90.0030.06721.14
5.6.80.0070.08020.40
5.5.350.0170.04320.44
5.5.340.0070.07717.99
5.5.330.0030.04320.27
5.5.320.0600.05720.36
5.5.310.0200.04020.29
5.5.300.0070.07717.95
5.5.290.0070.06717.91
5.5.280.0030.07720.98
5.5.270.0030.06320.79
5.5.260.0070.05720.67
5.5.250.0100.08020.66
5.5.240.0130.04720.27

preferences:
54.51 ms | 401 KiB | 5 Q