3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Container { protected $s=array(); function __set($k, $c) { $this->s[$k]=$c; } function __get($k) { return $this->s[$k]($this); } } $c = new Container; $something = function(){ var_dump("A"); return function(){ var_dump('StdClass'); }; }; Closure::bind($something, $c); $k = $c->something; $k();

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.0070.00718.53
8.3.50.0130.00716.34
8.3.40.0090.00618.88
8.3.30.0140.00718.68
8.3.20.0050.00318.87
8.3.10.0040.00420.48
8.3.00.0040.00417.48
8.2.180.0110.00316.75
8.2.170.0150.00322.96
8.2.160.0110.00322.12
8.2.150.0180.00024.18
8.2.140.0030.00724.66
8.2.130.0000.00726.16
8.2.120.0040.00419.95
8.2.110.0070.00421.97
8.2.100.0040.00717.97
8.2.90.0040.00419.21
8.2.80.0040.00418.05
8.2.70.0000.00817.63
8.2.60.0030.00518.05
8.2.50.0030.00518.07
8.2.40.0030.00618.34
8.2.30.0030.00718.00
8.2.20.0050.00217.90
8.2.10.0000.00817.89
8.2.00.0000.00817.77
8.1.280.0150.00025.92
8.1.270.0050.00223.99
8.1.260.0080.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.59
8.1.230.0090.00320.92
8.1.220.0040.00418.77
8.1.210.0000.00819.03
8.1.200.0030.00617.36
8.1.190.0000.00717.64
8.1.180.0060.00318.10
8.1.170.0090.00018.74
8.1.160.0000.00718.89
8.1.150.0040.00418.58
8.1.140.0000.00717.37
8.1.130.0070.00017.84
8.1.120.0040.00317.54
8.1.110.0040.00417.38
8.1.100.0030.00317.50
8.1.90.0040.00417.45
8.1.80.0000.00817.43
8.1.70.0030.00317.43
8.1.60.0030.00617.59
8.1.50.0030.00717.48
8.1.40.0000.00717.41
8.1.30.0030.00517.55
8.1.20.0060.00317.57
8.1.10.0030.00517.59
8.1.00.0040.00417.45
8.0.300.0000.01019.91
8.0.290.0000.00716.63
8.0.280.0030.00318.47
8.0.270.0000.00817.09
8.0.260.0030.00316.81
8.0.250.0070.00016.96
8.0.240.0040.00417.00
8.0.230.0030.00316.93
8.0.220.0000.00716.94
8.0.210.0000.00716.85
8.0.200.0040.00417.06
8.0.190.0000.00816.96
8.0.180.0000.00717.01
8.0.170.0040.00416.87
8.0.160.0030.00317.03
8.0.150.0040.00416.97
8.0.140.0030.00916.80
8.0.130.0030.00313.38
8.0.120.0040.00416.96
8.0.110.0000.00816.94
8.0.100.0040.00416.79
8.0.90.0030.00517.00
8.0.80.0060.00916.95
8.0.70.0000.00816.96
8.0.60.0000.00716.95
8.0.50.0050.00316.85
8.0.30.0060.01317.09
8.0.20.0100.00817.25
8.0.10.0000.00717.09
8.0.00.0110.00716.87
7.4.330.0050.00014.77
7.4.320.0000.00616.41
7.4.300.0030.00316.63
7.4.290.0030.00316.61
7.4.280.0060.00316.59
7.4.270.0000.00616.52
7.4.260.0030.00313.28
7.4.250.0050.00316.47
7.4.240.0040.00416.46
7.4.230.0040.00416.25
7.4.220.0090.00916.51
7.4.210.0090.00916.57
7.4.200.0000.00716.59
7.4.190.0030.00316.74
7.4.160.0090.00616.57
7.4.150.0060.01617.18
7.4.140.0150.00417.26
7.4.130.0050.01416.51
7.4.120.0060.01016.63
7.4.110.0150.00316.49
7.4.100.0100.00716.45
7.4.90.0100.00716.47
7.4.80.0070.01118.80
7.4.70.0100.01116.48
7.4.60.0100.00716.60
7.4.50.0000.00816.53
7.4.40.0070.01022.27
7.4.30.0110.00716.21
7.4.00.0030.01315.09
7.3.330.0030.00513.43
7.3.320.0030.00313.39
7.3.310.0060.00016.38
7.3.300.0030.00316.37
7.3.290.0070.00716.45
7.3.280.0060.01316.36
7.3.270.0150.00317.18
7.3.260.0160.00718.24
7.3.250.0080.01016.39
7.3.240.0090.00916.43
7.3.230.0140.00316.44
7.3.210.0130.00716.63
7.3.200.0060.01119.39
7.3.190.0060.01316.50
7.3.180.0140.00716.51
7.3.170.0060.01216.49
7.3.160.0110.00516.35
7.3.120.0130.00314.81
7.2.330.0090.01216.64
7.2.320.0080.01316.43
7.2.310.0100.01016.48
7.2.300.0040.01316.75
7.2.290.0090.00616.75
7.2.110.0310.01216.46
7.2.60.0060.00616.80
7.2.00.0030.00619.45
7.1.200.0030.01215.75
7.1.100.0350.01218.34
7.1.70.0030.00517.12
7.1.60.0140.01119.40
7.1.50.0030.00917.02
7.1.00.0070.04322.57
7.0.200.0000.00716.72
7.0.140.0030.06322.00
7.0.120.0000.07722.09
7.0.110.0030.07722.04
7.0.100.0030.06322.08
7.0.90.0100.07022.05
7.0.80.0000.07722.17
7.0.70.0000.07722.16
7.0.60.0030.07021.72
7.0.50.0030.07322.17
7.0.40.0130.06322.21
7.0.30.0030.07322.21
7.0.20.0100.06722.15
7.0.10.0070.07022.18
7.0.00.0070.07022.05
5.6.280.0030.07320.78
5.6.260.0030.07020.98
5.6.250.0100.07021.14
5.6.240.0000.08020.88
5.6.230.0000.08020.84
5.6.220.0100.06720.82
5.6.210.0070.06020.96
5.6.200.0100.06721.08
5.6.190.0000.08021.02
5.6.180.0070.07020.86
5.6.170.0030.06021.05
5.6.160.0030.07321.09
5.6.150.0030.08021.10
5.6.140.0100.06021.06
5.6.130.0030.07321.00
5.6.120.0100.07021.06
5.6.110.0070.06321.06
5.6.100.0000.08020.92
5.6.90.0000.07320.82
5.6.80.0170.05720.43
5.6.70.0070.06720.20
5.6.60.0030.07020.43
5.6.50.0030.07020.23
5.6.40.0070.06720.22
5.6.30.0100.06320.42
5.6.20.0000.07320.20
5.6.10.0030.06720.29
5.6.00.0000.07020.14
5.5.380.0000.07317.55
5.5.370.0070.06717.58
5.5.360.0030.07017.68
5.5.350.0000.07317.47
5.5.340.0030.07018.23
5.5.330.0030.07018.05
5.5.320.0070.06717.91
5.5.310.0000.07318.12
5.5.300.0000.07718.22
5.5.290.0030.07718.07
5.5.280.0000.06317.93
5.5.270.0100.07018.13
5.5.260.0030.07018.23
5.5.250.0030.07017.66
5.5.240.0000.07017.46
5.5.230.0030.07017.52
5.5.220.0030.06717.45
5.5.210.0070.06317.33
5.5.200.0070.06017.51
5.5.190.0000.07717.41
5.5.180.0000.07317.48
5.5.160.0000.06717.49
5.5.150.0070.06717.42
5.5.140.0000.07017.28
5.5.130.0000.06317.42
5.5.120.0000.07017.47
5.5.110.0070.06317.27
5.5.100.0030.07017.19
5.5.90.0070.06317.35
5.5.80.0030.06717.15
5.5.70.0000.07317.17
5.5.60.0000.07017.34
5.5.50.0030.06717.29
5.5.40.0000.06317.49
5.5.30.0000.07017.46
5.5.20.0030.07017.29
5.5.10.0100.06317.07
5.5.00.0000.06717.16
5.4.450.0070.06319.48
5.4.440.0070.07019.30
5.4.430.0030.07019.35
5.4.420.0000.07319.54
5.4.410.0100.06319.34
5.4.400.0000.07019.00
5.4.390.0000.07319.09
5.4.380.0000.07019.17
5.4.370.0030.06719.23
5.4.360.0000.07319.33
5.4.350.0000.07019.24
5.4.340.0070.06719.24
5.4.320.0070.05719.25
5.4.310.0030.06719.20
5.4.300.0000.07018.98
5.4.290.0000.07019.17
5.4.280.0030.07019.00
5.4.270.0030.05719.32
5.4.260.0000.06719.08
5.4.250.0030.06719.33
5.4.240.0070.06319.21
5.4.230.0000.06018.96
5.4.220.0000.06019.16
5.4.210.0030.06718.99
5.4.200.0030.06719.17
5.4.190.0000.07018.95
5.4.180.0070.06319.32
5.4.170.0030.06719.01
5.4.160.0000.06719.31
5.4.150.0030.07018.92
5.4.140.0000.07016.48
5.4.130.0070.06016.38
5.4.120.0030.06316.57
5.4.110.0100.06016.47
5.4.100.0070.06016.46
5.4.90.0000.06716.45
5.4.80.0030.05716.39
5.4.70.0000.05716.39
5.4.60.0070.05716.53
5.4.50.0030.06316.54
5.4.40.0070.06016.34
5.4.30.0000.06016.23
5.4.20.0100.05716.52
5.4.10.0030.06716.62
5.4.00.0000.06315.70
5.3.290.0000.06714.82
5.3.280.0030.06714.63
5.3.270.0030.07014.64
5.3.260.0000.07314.61
5.3.250.0030.06714.58
5.3.240.0030.05714.48
5.3.230.0000.06714.47
5.3.220.0000.06714.72
5.3.210.0000.05714.55
5.3.200.0030.06314.57
5.3.190.0100.06014.61
5.3.180.0030.06714.70
5.3.170.0070.06314.66
5.3.160.0000.05014.70
5.3.150.0030.06714.57
5.3.140.0030.06314.59
5.3.130.0000.07314.58
5.3.120.0000.06014.58
5.3.110.0030.07014.57
5.3.100.0030.06714.13
5.3.90.0070.05714.18
5.3.80.0030.06314.16
5.3.70.0030.06314.04
5.3.60.0000.06714.14
5.3.50.0000.06313.97
5.3.40.0000.06313.99
5.3.30.0000.06713.93
5.3.20.0000.06713.56
5.3.10.0030.04713.68
5.3.00.0000.06713.73
5.2.170.0000.05711.14
5.2.160.0030.05011.14
5.2.150.0000.05711.12
5.2.140.0000.05311.20
5.2.130.0030.05011.09
5.2.120.0030.05011.23
5.2.110.0000.05711.06
5.2.100.0030.04010.96
5.2.90.0000.04711.11
5.2.80.0030.05311.06
5.2.70.0030.04711.18
5.2.60.0000.05711.14
5.2.50.0000.06011.01
5.2.40.0000.05310.97
5.2.30.0030.05311.00
5.2.20.0030.04310.97
5.2.10.0030.05010.89
5.2.00.0030.05310.74
5.1.60.0000.04710.02
5.1.50.0000.04710.02
5.1.40.0000.04710.02
5.1.30.0000.05010.49
5.1.20.0030.05010.36
5.1.10.0000.05010.16
5.1.00.0070.04010.08
5.0.50.0000.04010.02
5.0.40.0030.03310.02
5.0.30.0000.05710.02
5.0.20.0030.03710.02
5.0.10.0030.03310.02
5.0.00.0000.05710.02
4.4.90.0000.03010.02
4.4.80.0000.03010.02
4.4.70.0070.02710.02
4.4.60.0000.03010.02
4.4.50.0030.02710.02
4.4.40.0100.04010.02
4.4.30.0030.02710.02
4.4.20.0030.02710.02
4.4.10.0000.03010.02
4.4.00.0000.04710.02
4.3.110.0030.03010.02
4.3.100.0000.03010.02
4.3.90.0000.03010.02
4.3.80.0000.04710.02
4.3.70.0000.02710.02
4.3.60.0000.03010.02
4.3.50.0000.03010.02
4.3.40.0000.04710.02
4.3.30.0000.03310.02
4.3.20.0000.03310.02
4.3.10.0000.03010.02
4.3.00.0030.02710.02

preferences:
41.44 ms | 401 KiB | 5 Q