3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { $that = $this; return static function() use($that) { var_dump($that); }; } public function baz() { return function() { var_dump($this); }; } } $bar = $f->bar(); $bar();

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.0120.00918.43
8.3.50.0070.01521.92
8.3.40.0140.00318.71
8.3.30.0140.00018.59
8.3.20.0050.00318.64
8.3.10.0030.00521.04
8.3.00.0040.00421.78
8.2.180.0120.00316.38
8.2.170.0090.01222.96
8.2.160.0070.00720.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00321.03
8.2.110.0100.00022.31
8.2.100.0110.00017.72
8.2.90.0030.00519.09
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0030.00517.78
8.2.50.0030.00518.07
8.2.40.0050.00318.03
8.2.30.0040.00419.37
8.2.20.0040.00417.55
8.2.10.0040.00417.64
8.2.00.0060.00317.50
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0060.00322.10
8.1.230.0070.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.29
8.1.180.0030.00518.10
8.1.170.0040.00418.51
8.1.160.0030.00618.71
8.1.150.0000.00718.55
8.1.140.0040.00417.30
8.1.130.0030.00317.75
8.1.120.0000.00717.39
8.1.110.0070.00017.20
8.1.100.0040.00417.21
8.1.90.0000.00717.23
8.1.80.0000.00717.21
8.1.70.0070.00017.29
8.1.60.0000.00817.38
8.1.50.0000.00817.30
8.1.40.0040.00417.44
8.1.30.0030.00617.44
8.1.20.0060.00317.46
8.1.10.0000.00717.50
8.1.00.0040.00417.45
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0000.00717.08
8.0.260.0030.00716.79
8.0.250.0040.00416.86
8.0.240.0040.00416.78
8.0.230.0070.00016.98
8.0.220.0000.00616.79
8.0.210.0000.00716.91
8.0.200.0030.00316.82
8.0.190.0000.00816.84
8.0.180.0070.00016.94
8.0.170.0000.00716.91
8.0.160.0000.00716.77
8.0.150.0070.00016.72
8.0.140.0030.00316.68
8.0.130.0000.00613.36
8.0.120.0050.00216.82
8.0.110.0050.00316.80
8.0.100.0070.00016.73
8.0.90.0040.00416.87
8.0.80.0000.01616.81
8.0.70.0000.00716.91
8.0.60.0000.00716.78
8.0.50.0040.00416.98
8.0.30.0130.00916.97
8.0.20.0110.00617.40
8.0.10.0000.00716.87
8.0.00.0120.00616.63
7.4.330.0020.00216.74
7.4.320.0000.00816.47
7.4.300.0060.00016.57
7.4.290.0030.00316.55
7.4.280.0040.00416.52
7.4.270.0030.00316.47
7.4.260.0000.00513.19
7.4.250.0040.00416.51
7.4.240.0040.00416.44
7.4.230.0040.00416.29
7.4.220.0130.01316.37
7.4.210.0040.01116.51
7.4.200.0000.00716.61
7.4.190.0000.00716.38
7.4.160.0040.01116.43
7.4.150.0040.01417.40
7.4.140.0130.00817.86
7.4.130.0070.00916.46
7.4.120.0120.00816.42
7.4.110.0170.00316.21
7.4.100.0070.01716.71
7.4.90.0060.01216.70
7.4.80.0150.00719.39
7.4.70.0090.00616.31
7.4.60.0070.01016.41
7.4.50.0040.00416.24
7.4.40.0000.01522.77
7.4.30.0120.01216.54
7.4.00.0060.00914.97
7.3.330.0030.00313.28
7.3.320.0070.00013.29
7.3.310.0080.00016.30
7.3.300.0040.00416.21
7.3.290.0080.00616.31
7.3.280.0070.00916.30
7.3.270.0100.00717.40
7.3.260.0120.00818.24
7.3.250.0170.00516.28
7.3.240.0070.01016.34
7.3.230.0090.00816.45
7.3.210.0110.00616.40
7.3.200.0100.00919.39
7.3.190.0030.01416.31
7.3.180.0120.00316.43
7.3.170.0110.01116.27
7.3.160.0110.00516.29
7.3.120.0030.01214.75
7.3.10.0030.00916.46
7.3.00.0110.00616.61
7.2.330.0130.01016.64
7.2.320.0120.00616.27
7.2.310.0150.00816.48
7.2.300.0030.02016.41
7.2.290.0070.01016.26
7.2.130.0060.00616.73
7.2.120.0070.00716.84
7.2.110.0030.01016.77
7.2.100.0030.00716.75
7.2.90.0040.01216.59
7.2.80.0050.00816.75
7.2.70.0060.00616.92
7.2.60.0100.00516.74
7.2.50.0070.00716.85
7.2.40.0000.01016.71
7.2.30.0000.01516.71
7.2.20.0110.00416.72
7.2.10.0030.00716.66
7.2.00.0110.00717.99
7.1.250.0040.00415.48
7.1.200.0000.01215.77
7.1.100.0040.01118.07
7.1.70.0030.00517.09
7.1.60.0120.01219.40
7.1.50.0090.01216.89
7.1.00.0000.07722.30
7.0.200.0100.00316.64
7.0.140.0030.07321.97
7.0.60.0100.08319.85
7.0.50.0130.07317.94
7.0.40.0100.08020.26
7.0.30.0430.06020.23
7.0.20.0300.05320.33
7.0.10.0230.07320.25
7.0.00.0070.09020.15
5.6.280.0000.07721.11
5.6.210.0030.09020.62
5.6.200.0130.07718.25
5.6.190.0030.05020.50
5.6.180.0330.08020.61
5.6.170.0200.05020.45
5.6.160.0100.07720.55
5.6.150.0070.03718.25
5.6.140.0000.05318.14
5.6.130.0030.04018.23
5.6.120.0070.09321.16
5.6.110.0130.07021.00
5.6.100.0000.04721.14
5.6.90.0070.07021.02
5.6.80.0070.07320.39
5.6.70.0230.07320.42
5.5.350.0200.03020.32
5.5.340.0100.07718.09
5.5.330.0000.05020.27
5.5.320.0270.04720.57
5.5.310.0300.05020.30
5.5.300.0100.04717.95
5.5.290.0030.06717.99
5.5.280.0130.08020.89
5.5.270.0070.05720.74
5.5.260.0100.06720.80
5.5.250.0200.07320.60
5.5.240.0170.07320.27
5.4.450.0230.04719.48
5.4.440.0200.04019.41
5.4.430.0200.03719.51
5.4.420.0200.04319.32
5.4.410.0230.04019.29
5.4.400.0230.03319.16
5.4.390.0270.05019.23
5.4.380.0200.03318.95
5.4.370.0230.07018.87
5.4.360.0130.06019.09
5.4.350.0200.04019.17
5.4.340.0200.03718.95
5.4.320.0200.04018.84
5.4.310.0200.03719.05
5.4.300.0230.04718.87
5.4.290.0170.04019.01
5.4.280.0270.04719.13
5.4.270.0170.04019.22
5.4.260.0130.04018.98
5.4.250.0100.04719.13
5.4.240.0200.03319.24
5.4.230.0130.04018.96
5.4.220.0130.04318.94
5.4.210.0130.05019.05
5.4.200.0300.03719.13
5.4.190.0200.03719.19
5.4.180.0470.07719.13
5.4.170.0200.05318.83
5.4.160.0200.03319.18
5.4.150.0100.05319.20
5.4.140.0170.03716.57
5.4.130.0200.04316.54
5.4.120.0170.04016.43
5.4.110.0330.04016.42
5.4.100.0170.03716.50
5.4.90.0200.03316.45
5.4.80.0130.04016.44
5.4.70.0230.03016.49
5.4.60.0500.04316.18
5.4.50.0230.05316.54
5.4.40.0170.04316.43
5.4.30.0130.03716.52
5.4.20.0200.03316.55
5.4.10.0230.04016.34
5.4.00.0630.04015.75
5.3.290.0130.04014.67
5.3.280.0200.04314.59
5.3.270.0170.07714.72
5.3.260.0430.05714.52
5.3.250.0230.06714.63
5.3.240.0200.07014.64
5.3.230.0270.07014.60
5.3.220.0200.07014.68
5.3.210.0230.07714.54
5.3.200.0300.06714.47
5.3.190.0500.05314.64
5.3.180.0230.06714.71
5.3.170.0170.06714.53
5.3.160.0170.07714.57
5.3.150.0530.06014.57
5.3.140.0270.06014.45
5.3.130.0200.06314.60
5.3.120.0230.05714.60
5.3.110.0230.07314.52
5.3.100.0230.05714.04
5.3.90.0130.04014.00
5.3.80.0270.06713.93
5.3.70.0300.06313.93
5.3.60.0200.07014.00
5.3.50.0230.07314.09
5.3.40.0130.05313.87
5.3.30.0130.04714.13
5.3.20.0230.06713.70
5.3.10.0200.04713.56
5.3.00.0230.03713.57
5.2.170.0370.03711.20
5.2.160.0230.05011.38
5.2.150.0500.04711.06
5.2.140.0170.03311.10
5.2.130.0200.05311.05
5.2.120.0200.05011.01
5.2.110.0200.05011.19
5.2.100.0170.05711.03
5.2.90.0170.03311.21
5.2.80.0170.02711.06
5.2.70.0170.02711.21
5.2.60.0230.05711.07
5.2.50.0170.06310.99
5.2.40.0170.05710.97
5.2.30.0170.05710.87
5.2.20.0130.03310.96
5.2.10.0170.05310.77
5.2.00.0130.03310.76
5.1.60.0100.02310.08
5.1.50.0170.02710.13
5.1.40.0130.05310.13
5.1.30.0170.04310.24
5.1.20.0200.04710.30
5.1.10.0170.0239.97
5.1.00.0170.0509.94
5.0.50.0100.0408.70
5.0.40.0330.0238.39
5.0.30.0030.0708.16
5.0.20.0330.0238.08
5.0.10.0100.0438.15
5.0.00.0100.0338.32
4.4.90.0030.0237.38
4.4.80.0070.0337.38
4.4.70.0070.0207.38
4.4.60.0000.0207.38
4.4.50.0070.0337.38
4.4.40.0070.0277.38
4.4.30.0400.0307.38
4.4.20.0130.0177.38
4.4.10.0100.0307.38
4.4.00.0430.0277.38
4.3.110.0100.0337.38
4.3.100.0070.0277.38
4.3.90.0130.0307.38
4.3.80.0100.0507.38
4.3.70.0070.0377.38
4.3.60.0070.0307.38
4.3.50.0100.0337.38
4.3.40.0130.0307.38
4.3.30.0030.0377.38
4.3.20.0100.0277.38
4.3.10.0100.0337.38
4.3.00.0030.0337.38

preferences:
47.72 ms | 401 KiB | 5 Q