3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $x = 3; } $foo = new Foo; $foobar = function () { var_dump($this->bar); }; // without the last parameter (optional, defaults to false), we'd get a static, not unbound closure $foobar = $foobar->bindTo(null, 'FooBar', true); $foobar->call($foo); // prints int(3)

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.70.0090.00618.19
8.3.60.0160.00618.38
8.3.50.0100.00522.05
8.3.40.0160.00318.97
8.3.30.0070.00718.84
8.3.20.0040.00420.33
8.3.10.0080.00021.89
8.3.00.0040.00417.93
8.2.180.0110.00418.66
8.2.170.0090.00622.96
8.2.160.0030.01320.39
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0140.00026.16
8.2.120.0000.00721.03
8.2.110.0090.00022.07
8.2.100.0120.00019.79
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0050.00317.61
8.2.60.0080.00017.80
8.2.50.0050.00518.07
8.2.40.0000.00918.28
8.2.30.0030.00618.13
8.2.20.0040.00417.73
8.2.10.0040.00418.09
8.2.00.0040.00417.62
8.1.280.0040.01125.92
8.1.270.0110.00423.92
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.03
8.1.230.0040.00719.10
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0000.00722.02
8.1.150.0070.00018.94
8.1.140.0040.00417.35
8.1.130.0030.00317.75
8.1.120.0000.00717.37
8.1.110.0030.00617.46
8.1.100.0000.00717.36
8.1.90.0040.00417.37
8.1.80.0070.00017.36
8.1.70.0040.00417.32
8.1.60.0070.00017.48
8.1.50.0000.00817.44
8.1.40.0030.00517.46
8.1.30.0000.00817.68
8.1.20.0080.00017.50
8.1.10.0060.00317.44
8.1.00.0080.00017.55
8.0.300.0050.00218.77
8.0.290.0080.00016.75
8.0.280.0000.00718.30
8.0.270.0030.00317.25
8.0.260.0030.00317.19
8.0.250.0030.00316.83
8.0.240.0030.00316.83
8.0.230.0070.00016.84
8.0.220.0000.00716.95
8.0.210.0030.00316.83
8.0.200.0050.00316.91
8.0.190.0000.00716.98
8.0.180.0070.00017.06
8.0.170.0070.00017.00
8.0.160.0030.00317.00
8.0.150.0040.00416.98
8.0.140.0070.00016.76
8.0.130.0050.00013.30
8.0.120.0030.00516.93
8.0.110.0000.00716.94
8.0.100.0070.00016.90
8.0.90.0000.00716.91
8.0.80.0040.01217.00
8.0.70.0040.00416.74
8.0.60.0000.00816.90
8.0.50.0020.00516.98
8.0.30.0100.01116.98
8.0.20.0100.00917.40
8.0.10.0040.00416.94
8.0.00.0110.01016.71
7.4.330.0020.00215.09
7.4.320.0000.00616.52
7.4.300.0000.00716.55
7.4.290.0000.00816.60
7.4.280.0000.01016.61
7.4.270.0030.00316.37
7.4.260.0000.00716.49
7.4.250.0040.00416.56
7.4.240.0030.00316.60
7.4.230.0040.00416.58
7.4.220.0060.01216.54
7.4.210.0030.01016.54
7.4.200.0000.00716.42
7.4.160.0100.00716.31
7.4.150.0060.01117.40
7.4.140.0030.01717.86
7.4.130.0120.00816.38
7.4.120.0080.00916.56
7.4.110.0030.01316.40
7.4.100.0170.00616.50
7.4.90.0070.01116.38
7.4.80.0030.01319.39
7.4.70.0070.01516.40
7.4.60.0090.01216.48
7.4.50.0000.00616.57
7.4.40.0060.01216.64
7.4.30.0060.01216.56
7.4.00.0130.00314.42
7.3.330.0040.00413.30
7.3.320.0020.00213.12
7.3.310.0030.00316.17
7.3.300.0070.00016.18
7.3.290.0150.00316.33
7.3.280.0080.01016.33
7.3.270.0140.00317.40
7.3.260.0090.01316.43
7.3.240.0070.01016.42
7.3.230.0130.00316.42
7.3.210.0110.00716.61
7.3.200.0090.00919.39
7.3.190.0030.01316.60
7.3.180.0060.01316.39
7.3.170.0110.00616.33
7.3.160.0110.00516.41
7.3.120.0040.01114.70
7.2.330.0090.01316.55
7.2.320.0100.00616.69
7.2.310.0100.01316.63
7.2.300.0080.00816.74
7.2.290.0140.00316.55
7.2.60.0070.01016.70
7.2.50.0060.00616.83
7.2.00.0070.00719.44
7.1.200.0060.00615.44
7.1.70.0060.00316.96
7.1.60.0100.01419.25
7.1.50.0090.01316.90
7.1.00.0030.07722.50
7.0.200.0030.01416.65
7.0.140.0030.07322.09
7.0.60.0100.06320.00
7.0.50.0030.08317.88
7.0.40.0070.05020.25
7.0.30.0500.07320.14
7.0.20.0230.05020.16
7.0.10.0330.04720.30
7.0.00.0200.07320.22
5.6.210.0130.06720.53
5.6.200.0070.08718.20
5.6.190.0100.04020.68
5.6.180.0200.04020.77
5.6.170.0370.03320.44
5.6.160.0070.07720.61
5.6.150.0000.08318.18
5.6.140.0070.08018.18
5.6.130.0100.07318.24
5.6.120.0070.06321.05
5.6.110.0100.08021.03
5.6.100.0100.08321.09
5.6.90.0070.05020.90
5.6.80.0130.07320.29
5.6.70.2430.06020.38
5.5.350.0100.08320.40
5.5.340.0070.04717.96
5.5.330.0070.05720.29
5.5.320.0370.04020.34
5.5.310.0230.03720.34
5.5.300.0000.04317.99
5.5.290.0100.08017.94
5.5.280.0070.08320.88
5.5.270.0100.06020.87
5.5.260.0300.06720.84
5.5.250.0130.07720.77
5.5.240.0370.07020.07
5.4.450.0270.06019.59
5.4.440.0300.07319.32
5.4.430.0230.04719.27
5.4.420.0230.04719.37
5.4.410.0230.05019.42
5.4.400.0300.04319.09
5.4.390.0270.07318.99
5.4.380.0370.06718.87
5.4.370.0300.06319.15
5.4.360.0330.06319.31
5.4.350.0400.07719.14
5.4.340.0230.05319.09
5.4.320.0270.06718.96
5.4.310.0330.06718.85
5.4.300.0330.03718.99
5.4.290.0300.06319.00
5.4.280.0400.06319.08
5.4.270.0330.06019.22
5.4.260.0230.07319.31
5.4.250.0230.04719.30
5.4.240.0270.08018.98
5.4.230.0330.06018.94
5.4.220.0270.05019.24
5.4.210.0330.03318.88
5.4.200.0300.07019.15
5.4.190.0330.07019.08
5.4.180.0270.04318.88
5.4.170.0330.04718.84
5.4.160.0370.06719.13
5.4.150.0230.07018.82
5.4.140.0270.06316.46
5.4.130.0270.06316.35
5.4.120.0170.04016.46
5.4.110.0130.04016.55
5.4.100.0200.03316.56
5.4.90.0130.03716.37
5.4.80.0170.03316.50
5.4.70.0200.03316.26
5.4.60.0230.03016.24
5.4.50.0070.05016.53
5.4.40.0230.03016.38
5.4.30.0100.04316.16
5.4.20.0170.04316.25
5.4.10.0230.03316.34
5.4.00.0130.04015.96
5.3.290.0330.06714.58
5.3.280.0400.06314.67
5.3.270.0300.06714.51
5.3.260.0300.07014.58
5.3.250.0400.05714.60
5.3.240.0330.04714.61
5.3.230.0270.05014.49
5.3.220.0170.04014.55
5.3.210.0230.03714.57
5.3.200.0200.04014.47
5.3.190.0130.04314.64
5.3.180.0230.04014.46
5.3.170.0230.03014.48
5.3.160.0100.04314.52
5.3.150.0330.03014.46
5.3.140.0200.03714.47
5.3.130.0200.03714.51
5.3.120.0270.03014.45
5.3.110.0170.04014.77
5.3.100.0230.04014.12
5.3.90.0130.04714.17
5.3.80.0300.05014.13
5.3.70.0170.03714.06
5.3.60.0200.03714.08
5.3.50.0200.03313.97
5.3.40.0200.03313.93
5.3.30.0170.03313.82
5.3.20.0170.04013.62
5.3.10.0200.03313.77
5.3.00.0170.04013.75
5.2.170.0130.03312.27
5.2.160.0230.02012.27
5.2.150.0130.03312.27
5.2.140.0130.03312.27
5.2.130.0170.02712.27
5.2.120.0170.02712.27
5.2.110.0170.02712.27
5.2.100.0130.02712.27
5.2.90.0170.02712.27
5.2.80.0130.02712.27
5.2.70.0170.02712.27
5.2.60.0130.03012.27
5.2.50.0170.02712.27
5.2.40.0130.02712.27
5.2.30.0070.03712.27
5.2.20.0130.02712.27
5.2.10.0170.03012.27
5.2.00.0170.06012.27
5.1.60.0130.02312.27
5.1.50.0130.04012.27
5.1.40.0170.05012.27
5.1.30.0200.05312.27
5.1.20.0200.03312.27
5.1.10.0230.04712.27
5.1.00.0230.02712.27
5.0.50.0130.04712.27
5.0.40.0200.02312.27
5.0.30.0100.05012.27
5.0.20.0130.03012.27
5.0.10.0100.02312.27
5.0.00.0300.03312.27
4.4.90.0030.01712.27
4.4.80.0030.01712.27
4.4.70.0030.01712.27
4.4.60.0030.01712.27
4.4.50.0070.01712.27
4.4.40.0070.03312.27
4.4.30.0070.01312.27
4.4.20.0100.03312.27
4.4.10.0130.01312.27
4.4.00.0170.04712.27
4.3.110.0100.02312.27
4.3.100.0200.02312.27
4.3.90.0100.03312.27
4.3.80.0100.03012.27
4.3.70.0100.03312.27
4.3.60.0100.01712.27
4.3.50.0070.02312.27
4.3.40.0070.03012.27
4.3.30.0030.03712.27
4.3.20.0030.03312.27
4.3.10.0030.04012.27
4.3.00.0100.03012.27

preferences:
105.72 ms | 401 KiB | 5 Q