3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private static $sfoo = 1; private $ifoo = 2; } $cl1 = static function() { return A::$sfoo; }; $cl2 = function() { return $this->ifoo; }; $bcl1 = $cl1->bindTo(null, 'A'); $bcl2 = $cl2->bindTo(new A(), 'A'); echo $bcl1(), "\n"; echo $bcl2(), "\n";

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.0110.00716.63
8.3.50.0130.00821.88
8.3.40.0090.00618.72
8.3.30.0100.00318.67
8.3.20.0000.00820.34
8.3.10.0040.00423.54
8.3.00.0060.00323.54
8.2.180.0120.00616.75
8.2.170.0090.00622.96
8.2.160.0040.01120.47
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00020.98
8.2.110.0060.00319.33
8.2.100.0120.00018.04
8.2.90.0050.00319.21
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0000.00818.09
8.2.40.0040.00420.45
8.2.30.0000.00819.36
8.2.20.0040.00417.66
8.2.10.0000.00818.02
8.2.00.0050.00218.11
8.1.280.0120.00625.92
8.1.270.0090.00922.19
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.48
8.1.230.0120.00017.76
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0100.00318.64
8.1.160.0000.00720.76
8.1.150.0000.00719.05
8.1.140.0000.00819.67
8.1.130.0000.00717.72
8.1.120.0070.00017.52
8.1.110.0000.00717.39
8.1.100.0000.00817.47
8.1.90.0000.00817.36
8.1.80.0070.00017.38
8.1.70.0000.00717.45
8.1.60.0000.00717.60
8.1.50.0000.00817.55
8.1.40.0110.00017.41
8.1.30.0030.00617.69
8.1.20.0040.00417.61
8.1.10.0000.00817.61
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.51
8.0.270.0040.00417.24
8.0.260.0000.00617.32
8.0.250.0060.00016.93
8.0.240.0000.00716.96
8.0.230.0000.00716.76
8.0.220.0040.00416.78
8.0.210.0040.00416.86
8.0.200.0030.00316.98
8.0.190.0000.00816.98
8.0.180.0000.00816.93
8.0.170.0000.00816.90
8.0.160.0040.00416.90
8.0.150.0000.00716.75
8.0.140.0040.00816.91
8.0.130.0030.00313.28
8.0.120.0070.00016.91
8.0.110.0050.00216.80
8.0.100.0070.00016.84
8.0.90.0080.00016.80
8.0.80.0060.01016.82
8.0.70.0070.00016.91
8.0.60.0040.00416.85
8.0.50.0040.00416.94
8.0.30.0060.01217.09
8.0.20.0110.00717.40
8.0.10.0000.00816.90
8.0.00.0090.00816.65
7.4.330.0000.00516.77
7.4.320.0030.00316.53
7.4.300.0000.00716.51
7.4.290.0000.01016.58
7.4.280.0040.00416.57
7.4.270.0000.00716.59
7.4.260.0040.00416.54
7.4.250.0000.00816.57
7.4.240.0000.00816.60
7.4.230.0070.00016.50
7.4.220.0160.00316.58
7.4.210.0120.00716.59
7.4.200.0030.00316.58
7.4.160.0120.00916.67
7.4.150.0130.00917.40
7.4.140.0090.01117.86
7.4.130.0080.00816.63
7.4.120.0110.00916.50
7.4.110.0100.01616.53
7.4.100.0040.01416.57
7.4.90.0070.01016.57
7.4.80.0060.01219.39
7.4.70.0090.00816.59
7.4.60.0060.01016.46
7.4.50.0070.00416.65
7.4.40.0100.01016.58
7.4.30.0160.00616.60
7.4.00.0100.00614.77
7.3.330.0000.00513.21
7.3.320.0000.00613.23
7.3.310.0000.00716.09
7.3.300.0040.00316.26
7.3.290.0030.00316.24
7.3.280.0060.01116.22
7.3.270.0110.00717.40
7.3.260.0090.00916.27
7.3.250.0120.00716.30
7.3.240.0060.01116.31
7.3.230.0100.00716.39
7.3.210.0090.01216.52
7.3.200.0110.00719.39
7.3.190.0090.00616.31
7.3.180.0140.00716.67
7.3.170.0090.01116.41
7.3.160.0070.01016.29
7.2.330.0080.01216.82
7.2.320.0070.01016.63
7.2.310.0180.00616.74
7.2.300.0090.00916.67
7.2.290.0080.00816.80
7.2.60.0110.00416.57
7.2.00.0040.00819.49
7.1.200.0030.00815.57
7.1.100.0030.00618.26
7.1.70.0030.00717.14
7.1.60.0140.01019.40
7.1.50.0060.01916.47
7.1.00.0030.07722.35
7.0.200.0260.00614.89
7.0.60.0300.06021.84
7.0.50.0030.05317.84
7.0.40.0130.08320.27
7.0.30.0200.05320.24
7.0.20.0300.04020.26
7.0.10.0130.07320.16
7.0.00.0100.04720.09
5.6.210.0100.08020.73
5.6.200.0000.05318.27
5.6.190.0130.08320.58
5.6.180.0200.08320.68
5.6.170.0200.03720.59
5.6.160.0130.06020.55
5.6.150.0130.06318.25
5.6.140.0130.08018.25
5.6.130.0230.06318.27
5.6.120.0130.07721.00
5.6.110.0030.04321.12
5.6.100.0200.08021.09
5.6.90.0100.07020.98
5.6.80.0100.06720.52
5.5.350.0100.07720.47
5.5.340.0100.08018.08
5.5.330.0100.08020.27
5.5.320.0430.04020.31
5.5.310.0400.04320.32
5.5.300.0100.03317.98
5.5.290.0130.07317.98
5.5.280.0070.07020.86
5.5.270.0070.05020.80
5.5.260.0030.04320.74
5.5.250.0100.08020.59
5.5.240.0200.05320.28

preferences:
37.96 ms | 401 KiB | 5 Q