3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static function blah() { $class = get_called_class(); $a = new $class(function(){ echo $this->bobo; }); return $a; } public $clos; public $bobo = 22; function __construct(\Closure $c) { $this->clos = $c->bindTo($this, $this); } } $a = Test::blah(); $ss = $a->clos; $ss();

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.0180.00316.88
8.3.50.0240.00916.49
8.3.40.0110.00418.89
8.3.30.0090.00618.55
8.3.20.0180.00018.73
8.3.10.0050.00320.48
8.3.00.0000.00817.63
8.2.180.0140.00716.63
8.2.170.0070.00722.96
8.2.160.0070.00722.17
8.2.150.0000.00824.18
8.2.140.0100.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00518.09
8.2.110.0070.00321.04
8.2.100.0040.00817.86
8.2.90.0000.00819.14
8.2.80.0080.00017.93
8.2.70.0080.00017.38
8.2.60.0000.00917.89
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0070.00018.06
8.2.20.0000.00717.65
8.2.10.0030.00617.61
8.2.00.0050.00217.69
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0140.00320.74
8.1.230.0030.00720.85
8.1.220.0080.00017.74
8.1.210.0040.00418.96
8.1.200.0030.00717.50
8.1.190.0050.00317.52
8.1.180.0000.00818.10
8.1.170.0040.00420.67
8.1.160.0040.00418.96
8.1.150.0000.00918.56
8.1.140.0000.00717.45
8.1.130.0030.00317.81
8.1.120.0030.00317.39
8.1.110.0060.00317.45
8.1.100.0050.00317.50
8.1.90.0000.00717.41
8.1.80.0070.00017.42
8.1.70.0060.00317.31
8.1.60.0030.00617.57
8.1.50.0040.00417.48
8.1.40.0040.00417.55
8.1.30.0000.00717.59
8.1.20.0030.00517.66
8.1.10.0000.00717.56
8.1.00.0040.00417.55
8.0.300.0030.00320.03
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0020.00517.29
8.0.260.0040.00416.90
8.0.250.0100.00017.00
8.0.240.0080.00016.96
8.0.230.0050.00316.96
8.0.220.0070.00016.94
8.0.210.0040.00416.76
8.0.200.0000.00616.98
8.0.190.0070.00017.01
8.0.180.0070.00017.03
8.0.170.0000.00816.88
8.0.160.0030.00316.96
8.0.150.0040.00416.89
8.0.140.0080.00016.99
8.0.130.0070.00013.43
8.0.120.0000.00716.80
8.0.110.0030.00316.95
8.0.100.0040.00416.76
8.0.90.0040.00416.91
8.0.80.0000.01616.87
8.0.70.0040.00416.88
8.0.60.0080.00016.83
8.0.50.0070.00016.93
8.0.30.0140.00717.27
8.0.20.0120.00817.12
8.0.10.0040.00417.20
8.0.00.0080.00916.88
7.4.330.0020.00212.99
7.4.320.0000.00716.52
7.4.300.0000.00616.48
7.4.290.0030.00316.69
7.4.280.0090.00016.64
7.4.270.0040.00316.57
7.4.260.0030.00313.29
7.4.250.0060.00316.60
7.4.240.0040.00416.60
7.4.230.0040.00316.40
7.4.220.0040.01216.47
7.4.210.0070.00916.53
7.4.200.0000.00716.35
7.4.190.0000.00816.39
7.4.160.0070.01016.50
7.4.150.0110.00616.43
7.4.140.0090.00916.56
7.4.130.0130.00416.62
7.4.120.0150.00216.57
7.4.110.0030.01416.50
7.4.100.0070.01016.38
7.4.90.0070.01116.61
7.4.80.0070.01016.52
7.4.70.0040.01716.38
7.4.60.0060.01516.40
7.4.50.0000.00516.57
7.4.40.0050.00816.43
7.4.30.0060.00916.35
7.4.00.0130.00014.86
7.3.330.0000.00613.37
7.3.320.0000.00513.39
7.3.310.0000.00716.40
7.3.300.0000.00616.38
7.3.290.0000.01416.30
7.3.280.0080.00916.31
7.3.270.0060.01016.45
7.3.260.0080.00816.34
7.3.250.0110.00816.51
7.3.240.0090.00916.40
7.3.230.0130.00316.43
7.3.210.0070.01216.38
7.3.200.0090.00619.39
7.3.190.0070.01116.39
7.3.180.0000.01616.42
7.3.170.0150.00616.52
7.3.160.0090.00916.28
7.3.120.0130.00314.80
7.2.330.0070.01016.79
7.2.320.0070.01016.80
7.2.310.0090.01216.37
7.2.300.0110.01116.58
7.2.290.0130.00316.80
7.2.60.0100.00316.93
7.2.00.0100.00019.46
7.1.200.0060.00915.84
7.1.100.0000.01518.25
7.1.70.0060.00617.09
7.1.60.0000.01419.40
7.1.50.0140.01016.88
7.1.00.0030.05722.31
7.0.200.0000.00716.88
7.0.140.0030.07322.02
7.0.120.0030.07322.13
7.0.60.0070.08020.03
7.0.50.0130.07717.71
7.0.40.0030.09020.05
7.0.30.0400.04020.30
7.0.20.0230.07020.07
7.0.10.0170.05020.30
7.0.00.0130.07020.35
5.6.280.0130.06320.87
5.6.210.0030.04020.72
5.6.200.0130.04018.14
5.6.190.0000.04720.60
5.6.180.0270.03720.50
5.6.170.0100.04720.47
5.6.160.0130.03020.55
5.6.150.0070.03718.29
5.6.140.0030.07718.14
5.6.130.0000.08718.27
5.6.120.0130.08321.03
5.6.110.0000.04321.01
5.6.100.0130.07021.01
5.6.90.0100.05021.00
5.6.80.0170.07020.30
5.6.70.4030.04020.53
5.5.350.0130.04720.50
5.5.340.0000.09318.07
5.5.330.0130.06320.47
5.5.320.0230.08020.30
5.5.310.0070.04720.27
5.5.300.0170.03717.99
5.5.290.0130.07318.08
5.5.280.0030.09020.66
5.5.270.0130.07320.77
5.5.260.0000.04720.69
5.5.250.0070.06320.67
5.5.240.0070.05320.27
5.4.450.0070.06019.19
5.4.440.0030.07719.57
5.4.430.0000.04319.47
5.4.420.0100.03319.19
5.4.410.0070.03719.05
5.4.400.0030.04319.16
5.4.390.0100.07318.92
5.4.380.0030.05019.00
5.4.370.0200.05318.98
5.4.360.0070.07319.16
5.4.350.0130.07319.14
5.4.340.0200.06019.21
5.4.320.0000.08018.85
5.4.310.0070.06719.15
5.4.300.0130.06719.11
5.4.290.0100.06718.85
5.4.280.0000.05019.20
5.4.270.0070.04718.85
5.4.260.0030.04319.20
5.4.250.0070.07318.97
5.4.240.0230.05719.23
5.4.230.0170.07019.23
5.4.220.0130.07319.04
5.4.210.0000.08018.97
5.4.200.0070.07719.06
5.4.190.0130.06719.13
5.4.180.0030.07719.23
5.4.170.0100.05719.01
5.4.160.0070.05019.22
5.4.150.0030.06719.22
5.4.140.0100.04016.48
5.4.130.0030.04316.42
5.4.120.0130.02716.45
5.4.110.0070.03316.48
5.4.100.0030.03316.50
5.4.90.0070.03016.48
5.4.80.0100.02716.35
5.4.70.0030.03316.46
5.4.60.0030.03316.45
5.4.50.0070.03316.42
5.4.40.0000.04016.50
5.4.30.0070.03016.30
5.4.20.0000.03716.36
5.4.10.0100.03716.41
5.4.00.0030.03715.93
5.3.290.0100.07714.60
5.3.280.0030.05014.68
5.3.270.0100.06314.61
5.3.260.0070.03714.50
5.3.250.0030.04014.66
5.3.240.0000.04014.64
5.3.230.0070.04314.52
5.3.220.0030.03714.73
5.3.210.0030.03714.63
5.3.200.0030.03714.49
5.3.190.0070.03314.46
5.3.180.0030.03714.60
5.3.170.0030.03714.62
5.3.160.0030.03714.64
5.3.150.0030.03714.58
5.3.140.0030.04014.61
5.3.130.0000.05314.56
5.3.120.0030.03714.55
5.3.110.0000.04014.56
5.3.100.0030.04014.21
5.3.90.0030.03714.02
5.3.80.0030.03714.06
5.3.70.0000.04014.07
5.3.60.0170.02314.03
5.3.50.0000.04314.04
5.3.40.0000.04314.04
5.3.30.0000.03713.95
5.3.20.0070.03013.76
5.3.10.0000.03713.70
5.3.00.0030.03313.72
5.2.170.0070.02711.20
5.2.160.0030.02711.10
5.2.150.0000.03011.14
5.2.140.0000.03011.11
5.2.130.0030.02711.08
5.2.120.0070.02311.07
5.2.110.0000.03011.07
5.2.100.0070.02311.11
5.2.90.0030.03311.14
5.2.80.0030.02711.25
5.2.70.0000.04011.14
5.2.60.0000.03011.05
5.2.50.0030.02711.03
5.2.40.0070.02311.00
5.2.30.0030.03310.93
5.2.20.0000.03311.03
5.2.10.0070.03010.75
5.2.00.0030.02710.72
5.1.60.0000.02710.06
5.1.50.0000.0279.91
5.1.40.0100.0179.94
5.1.30.0030.03310.41
5.1.20.0070.05310.42
5.1.10.0030.04010.14
5.1.00.0070.05710.22
5.0.50.0070.0438.69
5.0.40.0070.0378.51
5.0.30.0030.0338.51
5.0.20.0070.0278.51
5.0.10.0000.0308.51
5.0.00.0030.0308.51
4.4.90.0000.0178.51
4.4.80.0070.0108.51
4.4.70.0070.0108.51
4.4.60.0030.0138.51
4.4.50.0000.0178.51
4.4.40.0000.0278.51
4.4.30.0100.0078.51
4.4.20.0030.0338.51
4.4.10.0000.0208.51
4.4.00.0070.0538.51
4.3.110.0030.0238.51
4.3.100.0000.0178.51
4.3.90.0000.0178.51
4.3.80.0030.0478.51
4.3.70.0070.0108.51
4.3.60.0070.0278.51
4.3.50.0030.0278.51
4.3.40.0030.0538.51
4.3.30.0070.0338.51
4.3.20.0030.0138.51
4.3.10.0030.0378.51
4.3.00.0000.0208.51

preferences:
56.79 ms | 400 KiB | 5 Q