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; $var = function(){ var_dump("A"); return function(){ var_dump('StdClass'); }; }; Closure::bind($var, $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.40.0150.00618.80
8.3.30.0110.00718.46
8.3.20.0030.00518.73
8.3.10.0060.00320.33
8.3.00.0080.00019.25
8.2.170.0040.01122.96
8.2.160.0100.00721.07
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0070.00421.11
8.2.100.0080.00417.97
8.2.90.0060.00319.47
8.2.80.0000.00919.32
8.2.70.0040.00417.63
8.2.60.0100.00017.93
8.2.50.0040.00418.07
8.2.40.0060.00318.16
8.2.30.0030.00618.00
8.2.20.0080.00017.66
8.2.10.0050.00317.85
8.2.00.0090.00017.81
8.1.270.0030.00624.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0000.00822.48
8.1.230.0120.00020.97
8.1.220.0080.00017.79
8.1.210.0070.00318.92
8.1.200.0060.00317.36
8.1.190.0040.00417.63
8.1.180.0110.00018.10
8.1.170.0090.00018.89
8.1.160.0040.00418.82
8.1.150.0050.00318.70
8.1.140.0030.00717.41
8.1.130.0030.00317.80
8.1.120.0050.00217.47
8.1.110.0040.00417.45
8.1.100.0040.00417.36
8.1.90.0040.00417.54
8.1.80.0030.00417.46
8.1.70.0030.00317.41
8.1.60.0050.00217.62
8.1.50.0030.00517.45
8.1.40.0030.00617.40
8.1.30.0000.00717.55
8.1.20.0000.00817.66
8.1.10.0000.00717.61
8.1.00.0050.00317.41
8.0.300.0030.00619.98
8.0.290.0070.00016.63
8.0.280.0030.00318.45
8.0.270.0030.00317.13
8.0.260.0030.00316.82
8.0.250.0000.00716.99
8.0.240.0050.00316.98
8.0.230.0000.00716.86
8.0.220.0000.00716.94
8.0.210.0050.00516.80
8.0.200.0000.00717.02
8.0.190.0030.00316.95
8.0.180.0000.00816.87
8.0.170.0040.00416.88
8.0.160.0040.00416.94
8.0.150.0080.00016.90
8.0.140.0070.00316.93
8.0.130.0070.00013.43
8.0.120.0040.00416.81
8.0.110.0000.00717.02
8.0.100.0040.00416.90
8.0.90.0040.00416.84
8.0.80.0060.00917.00
8.0.70.0040.00416.78
8.0.60.0040.00417.01
8.0.50.0020.00516.86
8.0.30.0110.00917.21
8.0.20.0090.00917.17
8.0.10.0070.00016.97
8.0.00.0070.01116.79
7.4.330.0050.00012.99
7.4.320.0000.00616.40
7.4.300.0060.00016.52
7.4.290.0000.00716.45
7.4.280.0050.00316.40
7.4.270.0030.00616.45
7.4.260.0060.00013.29
7.4.250.0080.00016.39
7.4.240.0030.00316.52
7.4.230.0030.00316.40
7.4.220.0030.01616.59
7.4.210.0080.00816.57
7.4.200.0000.00716.59
7.4.190.0000.00716.70
7.4.160.0080.00816.64
7.4.150.0110.00716.66
7.4.140.0110.00916.40
7.4.130.0090.00816.56
7.4.120.0050.01116.51
7.4.110.0050.01616.42
7.4.100.0100.00716.50
7.4.90.0120.00716.59
7.4.80.0100.01316.44
7.4.70.0060.01616.52
7.4.60.0100.00816.48
7.4.50.0060.00316.66
7.4.40.0030.01416.58
7.4.30.0100.00716.48
7.4.00.0110.00515.06
7.3.330.0030.00313.20
7.3.320.0000.00513.25
7.3.310.0040.00416.43
7.3.300.0040.00416.25
7.3.290.0030.01016.33
7.3.280.0060.01016.30
7.3.270.0230.02416.38
7.3.260.0120.00716.51
7.3.250.0140.00816.36
7.3.240.0110.00716.49
7.3.230.0110.00616.53
7.3.210.0050.01416.33
7.3.200.0030.01619.39
7.3.190.0170.00316.32
7.3.180.0100.01016.39
7.3.170.0090.00616.33
7.3.160.0130.00316.31
7.3.120.0060.00914.67
7.3.110.0050.01114.64
7.3.100.0070.01114.67
7.3.90.0070.00914.86
7.3.80.0100.00514.79
7.3.70.0030.01014.70
7.3.60.0090.00314.79
7.3.50.0020.01114.68
7.3.40.0030.01014.78
7.3.30.0090.00214.76
7.3.20.0070.00416.49
7.3.10.0020.00916.51
7.3.00.0030.00816.62
7.2.330.0070.01116.73
7.2.320.0160.00616.44
7.2.310.0150.00316.41
7.2.300.0060.00916.68
7.2.290.0060.01016.36
7.2.250.0100.00714.92
7.2.240.0050.01315.05
7.2.230.0070.00914.84
7.2.220.0020.01514.82
7.2.210.0060.00914.84
7.2.200.0040.01314.75
7.2.190.0110.00514.93
7.2.180.0050.01015.05
7.2.170.0060.00714.94
7.2.160.0060.00315.07
7.2.150.0100.00316.61
7.2.140.0040.01116.59
7.2.130.0090.00016.77
7.2.120.0040.01116.90
7.2.110.0030.01016.85
7.2.100.0060.00916.86
7.2.90.0000.01416.67
7.2.80.0030.01016.54
7.2.70.0110.00416.78
7.2.60.0080.00516.82
7.2.50.0030.01316.72
7.2.40.0060.01016.54
7.2.30.0060.00616.91
7.2.20.0030.01317.07
7.2.10.0060.01317.02
7.2.00.0050.01018.17
7.1.330.0020.01215.61
7.1.320.0040.00815.89
7.1.310.0070.00915.68
7.1.300.0030.01015.64
7.1.290.0030.01215.68
7.1.280.0070.00615.53
7.1.270.0070.00315.73
7.1.260.0020.01215.91
7.1.250.0040.00815.63
7.1.240.0130.00015.57
7.1.230.0000.01415.88
7.1.220.0030.00715.56
7.1.210.0130.00015.85
7.1.200.0080.00615.81
7.1.190.0090.00315.56
7.1.180.0030.00915.92
7.1.170.0060.00915.58
7.1.160.0030.00615.73
7.1.150.0060.00615.75
7.1.140.0090.00615.59
7.1.130.0070.00715.55
7.1.120.0060.01215.58
7.1.110.0080.00815.62
7.1.100.0030.01116.98
7.1.90.0050.00515.78
7.1.80.0060.00615.70
7.1.70.0010.00916.40
7.1.60.0100.00817.64
7.1.50.0080.00816.20
7.1.40.0070.01015.86
7.1.30.0040.01215.84
7.1.20.0090.00615.90
7.1.10.0120.00315.66
7.1.00.0040.04019.12
7.0.330.0000.01215.40
7.0.320.0030.01015.43
7.0.310.0070.00715.16
7.0.300.0060.00915.35
7.0.290.0060.00315.39
7.0.280.0060.00915.52
7.0.270.0070.00715.44
7.0.260.0000.00915.48
7.0.250.0030.01315.18
7.0.240.0000.00915.50
7.0.230.0090.00015.47
7.0.220.0040.01115.57
7.0.210.0060.00615.42
7.0.200.0060.00316.14
7.0.190.0100.00715.49
7.0.180.0040.00715.35
7.0.170.0040.00715.37
7.0.160.0150.00015.36
7.0.150.0040.00715.35
7.0.140.0060.03818.59
7.0.130.0080.00815.44
7.0.120.0030.02518.63
7.0.110.0070.01818.60
7.0.100.0020.02518.80
7.0.90.0080.02318.77
7.0.80.0050.02018.66
7.0.70.0040.01918.83
7.0.60.0030.02118.63
7.0.50.0000.02618.80
7.0.40.0020.02716.68
7.0.30.0050.02016.84
7.0.20.0030.04016.67
7.0.10.0040.03716.62
7.0.00.0030.04316.65
5.6.400.0000.01514.63
5.6.390.0070.00714.47
5.6.380.0070.00714.60
5.6.370.0040.01214.37
5.6.360.0090.00614.57
5.6.350.0060.00614.27
5.6.340.0040.00714.00
5.6.330.0070.01114.45
5.6.320.0000.00914.36
5.6.310.0090.00614.05
5.6.300.0060.00614.11
5.6.290.0100.00014.46
5.6.280.0050.04017.90
5.6.270.0130.02517.55
5.6.260.0020.03017.51
5.6.250.0020.02417.64
5.6.240.0050.02317.77
5.6.230.0040.02617.74
5.6.220.0060.02017.47
5.6.210.0050.01817.63
5.6.200.0070.02217.73
5.6.190.0030.02517.55
5.6.180.0070.02517.65
5.6.170.0050.04017.72
5.6.160.0090.03617.61
5.6.150.0070.04317.46
5.6.140.0000.05417.71
5.6.130.0030.02817.54
5.6.120.0030.04617.54
5.6.110.0080.04217.64
5.6.100.0090.02717.53
5.6.90.0040.02417.59
5.6.80.0020.04217.18
5.6.70.0070.03717.32
5.6.60.0020.05017.09
5.6.50.0030.03517.38
5.6.40.0070.03017.23
5.6.30.0030.04617.20
5.6.20.0020.04817.25
5.6.10.0030.04017.44
5.6.00.0050.04417.29
5.5.380.0030.02315.89
5.5.370.0030.03215.76
5.5.360.0050.02515.83
5.5.350.0040.02316.04
5.5.340.0070.02316.07
5.5.330.0060.01916.29
5.5.320.0060.02316.28
5.5.310.0120.03816.39
5.5.300.0100.04516.15
5.5.290.0080.04216.16
5.5.280.0080.03815.98
5.5.270.0050.02315.87
5.5.260.0020.05516.13
5.5.250.0060.03315.95
5.5.240.0050.04115.81
5.5.230.0050.04315.74
5.5.220.0070.03515.78
5.5.210.0060.01815.85
5.5.200.0020.04115.93
5.5.190.0030.03415.52
5.5.180.0030.04715.61
5.5.170.0000.01113.75
5.5.160.0030.04015.80
5.5.150.0050.03915.78
5.5.140.0040.02215.88
5.5.130.0030.03715.84
5.5.120.0070.01815.79
5.5.110.0030.04215.74
5.5.100.0050.03515.61
5.5.90.0050.03715.61
5.5.80.0050.02815.89
5.5.70.0030.02815.57
5.5.60.0020.04515.69
5.5.50.0030.02515.81
5.5.40.0060.04015.69
5.5.30.0080.03815.90
5.5.20.0030.04215.84
5.5.10.0030.04215.82
5.5.00.0020.04115.85
5.4.450.0040.03915.31
5.4.440.0080.03615.24
5.4.430.0010.04615.24
5.4.420.0080.03015.02
5.4.410.0030.02215.20
5.4.400.0050.01715.14
5.4.390.0030.04315.06
5.4.380.0070.03715.06
5.4.370.0020.03814.92
5.4.360.0050.02914.98
5.4.350.0060.03314.94
5.4.340.0020.02315.14
5.4.330.0030.00610.94
5.4.320.0030.04215.23
5.4.310.0020.04015.04
5.4.300.0000.03315.13
5.4.290.0020.04015.13
5.4.280.0070.03114.96
5.4.270.0050.03915.06
5.4.260.0050.03814.93
5.4.250.0050.03814.83
5.4.240.0020.04215.24
5.4.230.0060.02815.12
5.4.220.0030.02214.93
5.4.210.0020.02215.08
5.4.200.0100.03514.99
5.4.190.0040.03115.09
5.4.180.0050.03715.19
5.4.170.0030.03715.13
5.4.160.0050.04015.02
5.4.150.0060.02115.00
5.4.140.0020.04213.82
5.4.130.0030.03913.58
5.4.120.0040.02913.74
5.4.110.0050.02613.64
5.4.100.0050.03613.71
5.4.90.0030.03013.68
5.4.80.0060.02613.69
5.4.70.0030.02213.78
5.4.60.0040.02713.66
5.4.50.0030.03313.76
5.4.40.0040.02713.76
5.4.30.0000.02313.72
5.4.20.0010.02813.59
5.4.10.0090.02713.77
5.4.00.0030.03513.44
5.3.290.0070.01512.55
5.3.280.0070.03812.61
5.3.270.0020.04212.55
5.3.260.0040.01812.49
5.3.250.0020.03612.65
5.3.240.0030.02012.63
5.3.230.0030.01812.57
5.3.220.0020.03312.50
5.3.210.0030.04012.47
5.3.200.0040.03112.56
5.3.190.0010.03612.40
5.3.180.0030.02212.70
5.3.170.0050.03812.54
5.3.160.0040.03012.52
5.3.150.0020.04712.57
5.3.140.0020.03412.35
5.3.130.0030.02212.55
5.3.120.0030.02312.45
5.3.110.0030.02812.57
5.3.100.0030.03012.14
5.3.90.0030.02812.32
5.3.80.0030.03812.21
5.3.70.0000.02912.22
5.3.60.0030.03412.24
5.3.50.0020.03912.21
5.3.40.0050.03312.22
5.3.30.0040.03012.02
5.3.20.0040.03112.05
5.3.10.0030.02311.81
5.3.00.0020.02711.96
5.2.170.0000.03011.00
5.2.160.0000.03011.11
5.2.150.0030.05011.16
5.2.140.0030.04011.16
5.2.130.0030.06011.18
5.2.120.0000.05311.09
5.2.110.0000.05011.18
5.2.100.0000.06311.10
5.2.90.0000.05311.09
5.2.80.0000.03011.18
5.2.70.0070.05711.18
5.2.60.0000.03011.07
5.2.50.0000.05310.99
5.2.40.0000.06010.97
5.2.30.0000.06011.06
5.2.20.0000.05711.05
5.2.10.0000.02710.90
5.2.00.0030.05310.70
5.1.60.0000.05310.14
5.1.50.0000.05310.18
5.1.40.0000.03710.14
5.1.30.0030.05010.35
5.1.20.0030.03010.45
5.1.10.0000.02710.14
5.1.00.0030.02710.14
5.0.50.0000.04710.14
5.0.40.0000.04710.14
5.0.30.0030.05010.14
5.0.20.0000.03310.14
5.0.10.0000.02310.14
5.0.00.0000.06710.14
4.4.90.0070.02710.14
4.4.80.0000.02010.14
4.4.70.0070.03010.14
4.4.60.0000.03310.14
4.4.50.0030.02310.14
4.4.40.0000.04010.14
4.4.30.0030.02010.14
4.4.20.0000.02710.14
4.4.10.0000.03310.14
4.4.00.0000.04710.14
4.3.110.0000.01310.14
4.3.100.0000.03310.14
4.3.90.0000.03310.14
4.3.80.0000.05310.14
4.3.70.0000.03310.14
4.3.60.0000.03010.14
4.3.50.0000.03310.14
4.3.40.0030.03310.14
4.3.30.0000.03310.14
4.3.20.0000.03010.14
4.3.10.0030.02710.14
4.3.00.0000.03310.14

preferences:
39.43 ms | 400 KiB | 5 Q