3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; public function call($call) { $call->bindTo($this, $this); return call_user_func($call); } } $a = new A; $a->a = 'Foo'; echo $a->call(function () { return $this->a; } );

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.0180.00018.84
8.3.30.0030.01019.21
8.3.20.0070.00020.35
8.3.10.0000.00823.46
8.3.00.0000.00817.91
8.2.170.0100.00322.96
8.2.160.0110.00822.26
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0030.00626.16
8.2.120.0000.00720.90
8.2.110.0040.00720.93
8.2.100.0090.00317.91
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0090.00017.93
8.2.50.0060.00318.10
8.2.40.0070.00418.22
8.2.30.0040.00318.25
8.2.20.0040.00417.86
8.2.10.0070.00018.08
8.2.00.0050.00217.70
8.1.270.0040.00423.79
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00922.53
8.1.230.0060.00617.68
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0080.00018.10
8.1.170.0060.00618.65
8.1.160.0040.00421.92
8.1.150.0040.00418.78
8.1.140.0000.00717.42
8.1.130.0030.00317.87
8.1.120.0040.00417.38
8.1.110.0040.00417.30
8.1.100.0000.00717.45
8.1.90.0000.00717.53
8.1.80.0040.00417.38
8.1.70.0060.00317.37
8.1.60.0040.00417.55
8.1.50.0030.00517.48
8.1.40.0000.00817.54
8.1.30.0040.00417.69
8.1.20.0000.00817.54
8.1.10.0040.00417.46
8.1.00.0040.00417.48
8.0.300.0060.00320.07
8.0.290.0090.00016.63
8.0.280.0030.00318.38
8.0.270.0050.00217.19
8.0.260.0030.00317.18
8.0.250.0000.00716.86
8.0.240.0030.00316.98
8.0.230.0080.00016.95
8.0.220.0030.00316.92
8.0.210.0000.00716.89
8.0.200.0020.00616.92
8.0.190.0000.00916.91
8.0.180.0050.00316.88
8.0.170.0030.00517.04
8.0.160.0040.00416.98
8.0.150.0040.00416.93
8.0.140.0030.00316.81
8.0.130.0000.00613.34
8.0.120.0040.00416.97
8.0.110.0000.00817.01
8.0.100.0040.00416.79
8.0.90.0060.00316.94
8.0.80.0040.01116.91
8.0.70.0050.00316.90
8.0.60.0000.00817.02
8.0.50.0000.00716.77
8.0.30.0050.01317.29
8.0.20.0090.01117.40
8.0.10.0040.00417.10
8.0.00.0060.01116.92
7.4.330.0050.00015.15
7.4.320.0000.00616.52
7.4.300.0030.00316.65
7.4.290.0020.00516.59
7.4.280.0000.00716.50
7.4.270.0000.00716.41
7.4.260.0060.00616.59
7.4.250.0030.00516.49
7.4.240.0000.00716.52
7.4.230.0030.00316.64
7.4.220.0090.00916.45
7.4.210.0070.01316.53
7.4.200.0040.00416.50
7.4.160.0130.00316.28
7.4.150.0070.01117.40
7.4.140.0100.01117.86
7.4.130.0090.01016.50
7.4.120.0060.01116.59
7.4.110.0090.00916.58
7.4.100.0100.00716.43
7.4.90.0150.00916.48
7.4.80.0150.00919.39
7.4.70.0030.01316.64
7.4.60.0090.00616.59
7.4.50.0060.00316.57
7.4.40.0030.01316.18
7.4.30.0110.01116.45
7.4.00.0090.00614.77
7.3.330.0050.00013.23
7.3.320.0050.00013.38
7.3.310.0030.00316.17
7.3.300.0030.00316.28
7.3.290.0030.01216.33
7.3.280.0090.00916.38
7.3.270.0000.01717.40
7.3.260.0070.01016.63
7.3.250.0110.00816.45
7.3.240.0000.01616.61
7.3.230.0110.00616.41
7.3.210.0040.01416.60
7.3.200.0040.01219.39
7.3.190.0130.00316.46
7.3.180.0090.00616.57
7.3.170.0140.00316.43
7.3.160.0060.01116.47
7.3.120.0110.00015.04
7.3.10.0080.00416.84
7.3.00.0030.00516.63
7.2.330.0060.01216.53
7.2.320.0130.00316.69
7.2.310.0080.01316.64
7.2.300.0090.00616.70
7.2.290.0090.01216.74
7.2.130.0100.00316.98
7.2.120.0000.01216.90
7.2.110.0000.01416.83
7.2.100.0060.00916.88
7.2.90.0060.01016.66
7.2.80.0090.00617.13
7.2.70.0060.00916.93
7.2.60.0030.01016.92
7.2.50.0030.01216.98
7.2.40.0000.01616.76
7.2.30.0070.00716.96
7.2.20.0100.00717.05
7.2.10.0070.00316.93
7.2.00.0060.00918.08
7.1.250.0060.00615.44
7.1.200.0030.00715.75
7.1.100.0040.00818.32
7.1.70.0000.00717.22
7.1.60.0000.02419.70
7.1.50.0070.01416.87
7.1.00.0130.06722.46
7.0.200.0050.00516.63
7.0.140.0070.06321.95
7.0.100.0130.08019.94
7.0.90.0130.08719.97
7.0.80.0130.05719.97
7.0.70.0130.08719.97
7.0.60.0070.06019.94
7.0.50.0230.07720.32
7.0.40.0070.05720.19
7.0.30.0000.04720.04
7.0.20.0100.03720.07
7.0.10.0030.04320.15
7.0.00.0030.04320.00
5.6.280.0170.05720.91
5.6.250.0070.05020.60
5.6.240.0070.07320.69
5.6.230.0130.07020.57
5.6.220.0100.08020.70
5.6.210.0030.09020.66
5.6.200.0130.05321.08
5.6.190.0070.07320.95
5.6.180.0100.04021.12
5.6.170.0100.03721.14
5.6.160.0030.04721.12
5.6.150.0070.04021.05
5.6.140.0030.04321.17
5.6.130.0030.04721.04
5.6.120.0000.10021.08
5.6.110.0030.08721.09
5.6.100.0100.03020.95
5.6.90.0030.04021.00
5.6.80.0030.05320.47
5.6.70.0070.03720.43
5.6.60.0000.04320.31
5.6.50.0070.03720.43
5.6.40.0030.07720.42
5.6.30.0070.04320.44
5.6.20.0000.04320.38
5.6.10.0000.04320.53
5.6.00.0000.04320.52
5.5.380.0130.07320.37
5.5.370.0030.07720.55
5.5.360.0100.05720.37
5.5.350.0170.06720.39
5.5.340.0030.07320.87
5.5.330.0100.04320.76
5.5.320.0000.04720.75
5.5.310.0030.05020.83
5.5.300.0070.04720.84
5.5.290.0070.04020.84
5.5.280.0000.04720.84
5.5.270.0100.04320.91
5.5.260.0030.08720.87
5.5.250.0100.05020.69
5.5.240.0000.04320.25
5.5.230.0070.03320.23
5.5.220.0030.04020.16
5.5.210.0030.04020.17
5.5.200.0000.05020.25
5.5.190.0070.03320.23
5.5.180.0070.04020.15
5.5.160.0100.07720.12
5.5.150.0030.04020.28
5.5.140.0030.04320.13
5.5.130.0070.03720.11
5.5.120.0070.03720.20
5.5.110.0000.04320.22
5.5.100.0030.04320.08
5.5.90.0100.03320.17
5.5.80.0030.04020.16
5.5.70.0070.03320.11
5.5.60.0070.03020.06
5.5.50.0070.03320.12
5.5.40.0000.04020.15
5.5.30.0030.04020.13
5.5.20.0030.03720.09
5.5.10.0100.07320.08
5.5.00.0070.08020.00
5.4.450.0030.04019.56
5.4.440.0030.08319.49
5.4.430.0130.05719.43
5.4.420.0030.07019.35
5.4.410.0030.05719.09
5.4.400.0100.03318.85
5.4.390.0030.05718.88
5.4.380.0070.03319.03
5.4.370.0070.03319.18
5.4.360.0030.03719.13
5.4.350.0030.04319.16
5.4.340.0030.04319.05
5.4.320.0100.05319.23
5.4.310.0030.06019.18
5.4.300.0030.04019.08
5.4.290.0070.03019.09
5.4.280.0030.04718.84
5.4.270.0070.03319.16
5.4.260.0000.04019.03
5.4.250.0030.03719.22
5.4.240.0000.04719.11
5.4.230.0030.03719.14
5.4.220.0000.04019.12
5.4.210.0070.04019.04
5.4.200.0030.03319.15
5.4.190.0070.03319.15
5.4.180.0030.03319.24
5.4.170.0100.06019.04
5.4.160.0130.07019.09
5.4.150.0200.06719.21
5.4.140.0100.06716.19
5.4.130.0300.05716.41
5.4.120.0070.04316.45
5.4.110.0030.08016.50
5.4.100.0030.07316.36
5.4.90.0070.07316.43
5.4.80.0070.06716.42
5.4.70.0100.05016.41
5.4.60.0070.07316.39
5.4.50.0100.06016.50
5.4.40.0030.07716.46
5.4.30.0070.07016.30
5.4.20.0130.06016.23
5.4.10.0100.05716.36
5.4.00.0130.05715.84
5.3.290.0070.03314.66
5.3.280.0030.03714.65
5.3.270.0030.07714.69
5.3.260.0030.05314.58
5.3.250.0070.07714.63
5.3.240.0070.07014.70
5.3.230.0070.07714.65
5.3.220.0070.07314.50
5.3.210.0100.07714.55
5.3.200.0070.05714.66
5.3.190.0170.06714.54
5.3.180.0030.07314.57
5.3.170.0100.07014.55
5.3.160.0130.06314.57
5.3.150.0130.06714.63
5.3.140.0100.07014.48
5.3.130.0070.05014.56
5.3.120.0100.08014.50
5.3.110.0000.05014.58
5.3.100.0070.07314.14
5.3.90.0070.06714.15
5.3.80.0100.07014.11
5.3.70.0000.05714.13
5.3.60.0100.07014.00
5.3.50.0030.06714.10
5.3.40.0130.03313.98
5.3.30.0070.03713.84
5.3.20.0030.04013.84
5.3.10.0030.07013.74
5.3.00.0070.06313.75
5.2.170.0070.04012.29
5.2.160.0100.05712.29
5.2.150.0070.06012.29
5.2.140.0100.06012.29
5.2.130.0000.06312.29
5.2.120.0000.07012.29
5.2.110.0030.06712.29
5.2.100.0100.05712.29
5.2.90.0100.05312.29
5.2.80.0100.05312.29
5.2.70.0030.06312.29
5.2.60.0070.05312.29
5.2.50.0000.06712.29
5.2.40.0100.05712.29
5.2.30.0070.06012.29
5.2.20.0030.06312.29
5.2.10.0070.05312.29
5.2.00.0000.06712.29
5.1.60.0030.05312.29
5.1.50.0030.04012.29
5.1.40.0100.04312.29
5.1.30.0130.05312.29
5.1.20.0070.05312.29
5.1.10.0070.05012.29
5.1.00.0200.03712.29
5.0.50.0070.04312.29
5.0.40.0000.04012.29
5.0.30.0030.06712.29
5.0.20.0070.04312.29
5.0.10.0030.04012.29
5.0.00.0000.05712.29
4.4.90.0000.03012.29
4.4.80.0070.02312.29
4.4.70.0030.03312.29
4.4.60.0070.02712.29
4.4.50.0000.03712.29
4.4.40.0000.05312.29
4.4.30.0070.03312.29
4.4.20.0000.03312.29
4.4.10.0030.03012.29
4.4.00.0000.06012.29
4.3.110.0030.03712.29
4.3.100.0100.02712.29
4.3.90.0030.03312.29
4.3.80.0030.05712.29
4.3.70.0070.03312.29
4.3.60.0070.03012.29
4.3.50.0000.03712.29
4.3.40.0000.05312.29
4.3.30.0000.03712.29
4.3.20.0000.03012.29
4.3.10.0000.03712.29
4.3.00.0000.03312.29

preferences:
40.09 ms | 400 KiB | 5 Q