3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected function _a() { return 'waa?'; } } class B extends A{} $c = function() { return $this->_a(); }; $b = new B; $c = $c->bindTo($b); var_dump($c); $c();

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.0090.00918.90
8.3.30.0130.00618.71
8.3.20.0050.00220.33
8.3.10.0030.00521.82
8.3.00.0040.00423.66
8.2.170.0120.00918.86
8.2.160.0030.01222.96
8.2.150.0000.00925.66
8.2.140.0000.00924.66
8.2.130.0080.00019.83
8.2.120.0050.00326.35
8.2.110.0100.00022.25
8.2.100.0080.00417.80
8.2.90.0080.00019.17
8.2.80.0050.00318.03
8.2.70.0060.00317.63
8.2.60.0000.00818.00
8.2.50.0000.00818.07
8.2.40.0080.00022.34
8.2.30.0040.00419.50
8.2.20.0070.00017.81
8.2.10.0040.00418.06
8.2.00.0000.00718.01
8.1.270.0000.00823.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00019.28
8.1.230.0060.00618.87
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0040.00417.24
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0080.00018.55
8.1.160.0050.00220.72
8.1.150.0000.00718.83
8.1.140.0060.00319.68
8.1.130.0000.00717.58
8.1.120.0070.00017.50
8.1.110.0030.00717.43
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0040.00417.37
8.1.70.0000.00717.46
8.1.60.0060.00317.58
8.1.50.0000.00817.52
8.1.40.0080.00317.47
8.1.30.0060.00317.63
8.1.20.0030.00617.61
8.1.10.0050.00317.64
8.1.00.0060.00317.48
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0070.00018.35
8.0.270.0040.00417.18
8.0.260.0000.00617.23
8.0.250.0070.00016.96
8.0.240.0070.00016.86
8.0.230.0000.00716.88
8.0.220.0000.00716.90
8.0.210.0070.00016.93
8.0.200.0030.00317.02
8.0.190.0000.00816.89
8.0.180.0070.00016.88
8.0.170.0030.00517.01
8.0.160.0000.00716.84
8.0.150.0040.00416.84
8.0.140.0000.00716.81
8.0.130.0060.00013.44
8.0.120.0040.00416.91
8.0.110.0080.00016.83
8.0.100.0000.00716.98
8.0.90.0000.00716.73
8.0.80.0070.01416.95
8.0.70.0040.00416.98
8.0.60.0040.00417.01
8.0.50.0040.00417.01
8.0.30.0110.01117.08
8.0.20.0080.01117.40
8.0.10.0070.00016.86
8.0.00.0060.01216.72
7.4.330.0020.00216.83
7.4.320.0030.00316.45
7.4.300.0000.00716.63
7.4.290.0070.00016.54
7.4.280.0040.00516.58
7.4.270.0000.01016.60
7.4.260.0080.00416.61
7.4.250.0000.00716.49
7.4.240.0040.00416.45
7.4.230.0000.00716.48
7.4.220.0100.01116.43
7.4.210.0070.01016.52
7.4.200.0000.00716.39
7.4.160.0120.00416.57
7.4.150.0110.00717.40
7.4.140.0070.01317.86
7.4.130.0080.01016.55
7.4.120.0110.00716.47
7.4.110.0070.01016.59
7.4.100.0150.00716.63
7.4.90.0120.00616.61
7.4.80.0070.01019.39
7.4.70.0110.00816.37
7.4.60.0090.00816.50
7.4.50.0090.00916.72
7.4.40.0090.00916.71
7.4.30.0060.01216.54
7.4.10.0110.00615.11
7.4.00.0020.01414.78
7.3.330.0000.00513.22
7.3.320.0050.00013.13
7.3.310.0020.00516.32
7.3.300.0070.00016.31
7.3.290.0000.00716.30
7.3.280.0100.00816.32
7.3.270.0200.00417.40
7.3.260.0120.01316.29
7.3.250.0110.00716.33
7.3.240.0090.00916.43
7.3.230.0150.00316.63
7.3.210.0100.00716.36
7.3.200.0130.01016.70
7.3.190.0070.01516.28
7.3.180.0070.01016.50
7.3.170.0030.01516.43
7.3.160.0100.00716.43
7.3.130.0040.00714.92
7.3.120.0100.00714.84
7.3.110.0030.01414.80
7.3.100.0000.01314.81
7.3.90.0000.01314.84
7.3.80.0100.00314.53
7.3.70.0000.01114.88
7.3.60.0060.00914.71
7.3.50.0000.00814.77
7.3.40.0000.01514.64
7.3.30.0060.00614.55
7.3.20.0000.01216.82
7.3.10.0040.01116.65
7.3.00.0000.01216.69
7.2.330.0120.00916.57
7.2.320.0130.00416.50
7.2.310.0120.00416.39
7.2.300.0060.01616.30
7.2.290.0070.01116.79
7.2.260.0150.00415.22
7.2.250.0100.00715.20
7.2.240.0030.01215.23
7.2.230.0030.01015.18
7.2.220.0000.01514.90
7.2.210.0070.00415.01
7.2.200.0100.00314.93
7.2.190.0030.00915.10
7.2.180.0100.00314.77
7.2.170.0060.00615.07
7.2.160.0060.00315.00
7.2.150.0060.01016.96
7.2.140.0040.01216.92
7.2.130.0030.01216.69
7.2.120.0040.00717.00
7.2.110.0110.00416.89
7.2.100.0090.00416.83
7.2.90.0080.00417.09
7.2.80.0030.01216.90
7.2.70.0000.01616.95
7.2.60.0030.01116.82
7.2.50.0050.00516.99
7.2.40.0040.01116.95
7.2.30.0080.00316.93
7.2.20.0080.00416.99
7.2.10.0030.00616.80
7.2.00.0050.00618.24
7.1.330.0030.00715.84
7.1.320.0060.00915.88
7.1.310.0030.00916.04
7.1.300.0030.00615.75
7.1.290.0040.00415.82
7.1.280.0090.00615.75
7.1.270.0090.00015.94
7.1.260.0060.00615.80
7.1.250.0090.00615.79
7.1.240.0040.01115.47
7.1.230.0030.01315.83
7.1.220.0070.00715.69
7.1.210.0070.01015.59
7.1.200.0060.00215.72
7.1.190.0040.01115.84
7.1.180.0080.00815.54
7.1.170.0030.00715.88
7.1.160.0060.00615.61
7.1.150.0030.01315.59
7.1.140.0000.01115.89
7.1.130.0090.00615.59
7.1.120.0060.00615.70
7.1.110.0090.00615.73
7.1.100.0000.01617.02
7.1.90.0060.00615.88
7.1.80.0070.00715.57
7.1.70.0080.00416.30
7.1.60.0090.00717.55
7.1.50.0090.01116.35
7.1.40.0090.00615.75
7.1.30.0080.00415.55
7.1.20.0070.00715.57
7.1.10.0050.01015.90
7.1.00.0030.04119.18
7.0.330.0040.01115.57
7.0.320.0000.01215.38
7.0.310.0040.00415.24
7.0.300.0040.00715.30
7.0.290.0030.00915.37
7.0.280.0060.00815.29
7.0.270.0100.00315.18
7.0.260.0140.00015.18
7.0.250.0110.00415.38
7.0.240.0110.00715.43
7.0.230.0000.01115.57
7.0.220.0080.00315.35
7.0.210.0100.00015.07
7.0.200.0030.00815.93
7.0.190.0000.01615.21
7.0.180.0110.00315.04
7.0.170.0060.00615.19
7.0.160.0030.01015.50
7.0.150.0040.00815.39
7.0.140.0060.00915.23
7.0.130.0090.00415.51
7.0.120.0060.00615.59
7.0.110.0050.00515.46
7.0.100.0070.00715.19
7.0.90.0030.00915.16
7.0.80.0040.00715.34
7.0.70.0030.01015.33
7.0.60.0020.02618.57
7.0.50.0120.04016.65
7.0.40.0000.03716.91
7.0.30.0180.02816.87
7.0.20.0120.02516.86
7.0.10.0100.04316.79
7.0.00.0030.02616.79
5.6.400.0070.00714.19
5.6.390.0040.01214.36
5.6.380.0110.00014.37
5.6.370.0000.01413.99
5.6.360.0030.00514.21
5.6.350.0040.01214.29
5.6.340.0110.00414.32
5.6.330.0000.01214.60
5.6.320.0060.00614.44
5.6.310.0070.00714.48
5.6.300.0080.00814.28
5.6.290.0030.01414.32
5.6.280.0020.02117.67
5.6.270.0110.00314.42
5.6.260.0040.01114.38
5.6.250.0030.00914.05
5.6.240.0070.01014.43
5.6.230.0040.01114.46
5.6.220.0070.00714.35
5.6.210.0030.04617.56
5.6.200.0040.04116.28
5.6.190.0070.04317.46
5.6.180.0180.04017.47
5.6.170.0170.02517.28
5.6.160.0050.02517.37
5.6.150.0080.03016.33
5.6.140.0000.05116.26
5.6.130.0030.03616.18
5.6.120.0110.03517.81
5.6.110.0020.04817.49
5.6.100.0070.03217.71
5.6.90.0070.03317.77
5.6.80.0050.04117.23
5.6.70.0140.00014.17
5.6.60.0000.00814.16
5.6.50.0060.00313.99
5.6.40.0070.01013.95
5.6.30.0040.01114.32
5.6.20.0000.01114.26
5.6.10.0070.00714.16
5.6.00.0030.00514.12
5.5.380.0030.00714.06
5.5.370.0080.00814.06
5.5.360.0000.01114.43
5.5.350.0030.05017.20
5.5.340.0000.02616.16
5.5.330.0070.04517.18
5.5.320.0280.03317.32
5.5.310.0130.02217.48
5.5.300.0030.05115.99
5.5.290.0090.03616.01
5.5.280.0030.04317.48
5.5.270.0020.02717.57
5.5.260.0110.04217.25
5.5.250.0100.04317.52
5.5.240.0150.03517.13
5.5.230.0040.00814.04
5.5.220.0100.00314.20
5.5.210.0000.01014.28
5.5.200.0070.00714.31
5.5.190.0060.00614.15
5.5.180.0030.00614.19
5.5.170.0090.00314.29
5.5.160.0080.00314.04
5.5.150.0090.00414.30
5.5.140.0000.01214.28
5.5.130.0000.01413.98
5.5.120.0080.00014.52
5.5.110.0090.00014.40
5.5.100.0070.00714.10
5.5.90.0080.00414.22
5.5.80.0040.00714.01
5.5.70.0090.00314.13
5.5.60.0030.01014.16
5.5.50.0000.00914.27
5.5.40.0040.00714.41
5.5.30.0030.01014.48
5.5.20.0000.01013.98
5.5.10.0030.01213.81
5.5.00.0060.00614.18

preferences:
37.51 ms | 400 KiB | 5 Q