3v4l.org

run code in 300+ PHP versions simultaneously
<?php class closurecaller { public function callByClosure() { var_dump('i am called'); } public function callClosure() { $closure = function() { $this->callByClosure(); }; return $closure; } } $cc = new closurecaller(); call_user_func($cc->callClosure());

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.0130.01016.50
8.3.50.0110.01218.21
8.3.40.0100.00718.80
8.3.30.0070.00718.68
8.3.20.0040.00418.81
8.3.10.0080.00020.56
8.3.00.0080.00019.38
8.2.180.0040.01116.38
8.2.170.0110.00422.96
8.2.160.0110.00720.69
8.2.150.0050.00325.66
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00419.18
8.2.110.0090.00020.94
8.2.100.0110.00017.72
8.2.90.0090.00019.32
8.2.80.0040.00419.25
8.2.70.0060.00317.35
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00418.34
8.2.30.0040.00418.03
8.2.20.0100.00019.51
8.2.10.0000.00717.75
8.2.00.0060.00317.61
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0120.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.50
8.1.230.0110.00020.91
8.1.220.0050.00317.78
8.1.210.0060.00418.91
8.1.200.0060.00317.35
8.1.190.0080.00017.43
8.1.180.0050.00318.10
8.1.170.0040.00420.54
8.1.160.0070.00018.86
8.1.150.0040.00418.64
8.1.140.0050.00217.38
8.1.130.0000.00717.74
8.1.120.0000.00917.38
8.1.110.0040.00417.53
8.1.100.0030.00317.36
8.1.90.0000.00717.47
8.1.80.0000.00717.37
8.1.70.0080.00017.41
8.1.60.0060.00317.56
8.1.50.0040.00417.32
8.1.40.0000.00717.42
8.1.30.0040.00417.63
8.1.20.0000.00817.57
8.1.10.0050.00317.56
8.1.00.0000.00717.30
8.0.300.0040.00419.86
8.0.290.0040.00416.58
8.0.280.0040.00418.29
8.0.270.0030.00317.19
8.0.260.0080.00016.70
8.0.250.0080.00016.87
8.0.240.0040.00416.87
8.0.230.0000.00716.87
8.0.220.0000.00716.84
8.0.210.0000.00716.76
8.0.200.0030.00316.98
8.0.190.0030.00316.89
8.0.180.0030.00516.93
8.0.170.0060.00316.87
8.0.160.0030.00316.82
8.0.150.0030.00616.69
8.0.140.0050.00316.85
8.0.130.0000.00613.36
8.0.120.0040.00416.88
8.0.110.0040.00416.78
8.0.100.0030.00516.74
8.0.90.0000.00716.88
8.0.80.0100.00716.88
8.0.70.0050.00316.86
8.0.60.0000.00716.88
8.0.50.0000.00716.84
8.0.30.0110.00716.84
8.0.20.0110.00917.01
8.0.10.0050.00516.98
8.0.00.0110.01016.62
7.4.330.0050.00012.91
7.4.320.0000.00716.59
7.4.300.0030.00316.65
7.4.290.0000.00616.59
7.4.280.0040.00416.50
7.4.270.0050.00316.50
7.4.260.0060.00013.37
7.4.250.0000.00816.47
7.4.240.0070.00016.56
7.4.230.0030.00316.35
7.4.220.0100.01616.63
7.4.210.0090.00916.55
7.4.200.0070.00016.39
7.4.190.0000.00716.76
7.4.160.0060.01016.63
7.4.150.0130.00616.36
7.4.140.0070.00916.51
7.4.130.0110.00616.49
7.4.120.0100.01016.59
7.4.110.0070.01016.52
7.4.100.0090.00616.32
7.4.90.0090.01216.52
7.4.80.0090.00619.39
7.4.70.0090.01016.46
7.4.60.0080.00816.64
7.4.50.0070.00416.43
7.4.40.0070.01016.52
7.4.30.0030.01316.56
7.4.00.0000.01614.89
7.3.330.0060.00013.31
7.3.320.0080.00013.30
7.3.310.0000.00716.41
7.3.300.0070.00016.17
7.3.290.0100.00716.27
7.3.280.0100.00916.26
7.3.270.0070.01016.56
7.3.260.0170.00016.77
7.3.250.0100.00716.59
7.3.240.0100.00616.28
7.3.230.0160.00016.29
7.3.210.0130.00316.35
7.3.200.0170.00316.40
7.3.190.0100.00616.24
7.3.180.0060.01016.36
7.3.170.0130.00316.53
7.3.160.0030.01516.58
7.3.120.0000.00714.61
7.2.330.0100.01016.70
7.2.320.0070.01016.62
7.2.310.0140.00916.42
7.2.300.0070.01016.28
7.2.290.0070.01016.69
7.2.00.0060.00619.36
7.1.100.0030.01017.78
7.1.70.0070.00317.12
7.1.60.0120.01219.40
7.1.50.0070.01417.00
7.1.00.0070.07022.41
7.0.200.0000.00716.74
7.0.140.0070.07321.97
7.0.120.0030.03722.07
7.0.60.0070.05019.82
7.0.50.0130.08017.88
7.0.40.0070.05020.10
7.0.30.0530.03720.23
7.0.20.0230.03320.10
7.0.10.0270.08020.26
7.0.00.0070.07020.06
5.6.280.0000.07721.05
5.6.210.0070.08320.62
5.6.200.0030.04718.16
5.6.190.0070.08320.48
5.6.180.0330.04320.47
5.6.170.0370.06720.55
5.6.160.0000.05020.44
5.6.150.0030.04018.24
5.6.140.0100.03318.18
5.6.130.0100.08018.18
5.6.120.0070.04321.02
5.6.110.0130.07721.13
5.6.100.0070.08720.89
5.6.90.0070.08720.96
5.6.80.0070.08720.41
5.6.70.0100.04020.44
5.5.350.0330.07320.41
5.5.340.0130.07017.98
5.5.330.0000.08720.13
5.5.320.0300.06020.28
5.5.310.0270.07320.28
5.5.300.0070.08318.08
5.5.290.0000.08317.96
5.5.280.0200.07020.78
5.5.270.0130.07020.87
5.5.260.0000.04320.85
5.5.250.0100.08320.50
5.5.240.0130.06020.16
5.4.450.0030.07719.18
5.4.440.0100.04019.41
5.4.430.0030.06019.57
5.4.420.0030.04319.44
5.4.410.0070.06719.36
5.4.400.0230.06318.88
5.4.390.0130.06319.12
5.4.380.0200.06319.20
5.4.370.0030.04019.20
5.4.360.0170.06018.86
5.4.350.0030.04018.98
5.4.340.0070.04018.85
5.4.320.0000.04018.85
5.4.310.0030.03719.25
5.4.300.0000.04019.24
5.4.290.0000.04019.00
5.4.280.0000.04019.11
5.4.270.0030.03719.07
5.4.260.0030.04019.00
5.4.250.0100.03019.11
5.4.240.0030.03718.87
5.4.230.0030.03719.14
5.4.220.0030.03718.84
5.4.210.0070.03319.08
5.4.200.0100.03018.92
5.4.190.0100.03019.07
5.4.180.0030.03719.23
5.4.170.0000.04019.23
5.4.160.0000.04019.13
5.4.150.0030.03719.06
5.4.140.0100.03016.47
5.4.130.0000.04316.42
5.4.120.0030.04316.59
5.4.110.0070.03016.49
5.4.100.0070.03716.42
5.4.90.0030.03316.60
5.4.80.0030.03316.42
5.4.70.0070.06016.46
5.4.60.0130.02716.32
5.4.50.0030.04716.36
5.4.40.0070.07716.36
5.4.30.0100.04016.36
5.4.20.0030.08016.25
5.4.10.0070.07716.31
5.4.00.0030.05015.79
5.3.290.0000.04014.66
5.3.280.0030.03714.75
5.3.270.0100.04014.66
5.3.260.0070.03314.63
5.3.250.0070.03314.75
5.3.240.0070.03014.64
5.3.230.0030.03714.65
5.3.220.0000.04014.57
5.3.210.0030.03714.61
5.3.200.0070.03314.49
5.3.190.0000.04014.56
5.3.180.0030.03314.57
5.3.170.0030.04014.56
5.3.160.0130.06714.62
5.3.150.0130.04314.61
5.3.140.0030.06714.72
5.3.130.0100.03314.59
5.3.120.0070.07714.70
5.3.110.0100.07314.55
5.3.100.0030.04714.18
5.3.90.0100.06714.02
5.3.80.0000.06014.03
5.3.70.0000.06313.98
5.3.60.0070.05713.93
5.3.50.0100.05713.88
5.3.40.0100.06313.85
5.3.30.0000.07713.83
5.3.20.0130.06013.75
5.3.10.0100.05013.63
5.3.00.0000.05313.65
5.2.170.0000.04711.18
5.2.160.0000.03011.22
5.2.150.0030.04011.16
5.2.140.0070.03011.30
5.2.130.0030.03711.07
5.2.120.0070.06011.18
5.2.110.0030.06311.09
5.2.100.0030.05311.11
5.2.90.0030.04011.25
5.2.80.0070.06011.17
5.2.70.0070.04311.17
5.2.60.0170.05011.11
5.2.50.0030.05710.96
5.2.40.0000.06011.16
5.2.30.0030.06711.02
5.2.20.0070.03311.04
5.2.10.0030.03310.86
5.2.00.0070.02310.75
5.1.60.0030.03010.02
5.1.50.0130.0439.91
5.1.40.0070.03710.13
5.1.30.0030.05310.34
5.1.20.0030.03310.39
5.1.10.0100.04310.14
5.1.00.0100.04310.13
5.0.50.0030.0378.61
5.0.40.0070.0408.39
5.0.30.0000.0538.22
5.0.20.0130.0378.23
5.0.10.0070.0438.13
5.0.00.0030.0678.15
4.4.90.0000.0277.71
4.4.80.0030.0177.71
4.4.70.0000.0377.71
4.4.60.0000.0237.71
4.4.50.0000.0307.71
4.4.40.0000.0337.71
4.4.30.0000.0207.71
4.4.20.0000.0337.71
4.4.10.0070.0337.71
4.4.00.0000.0607.71
4.3.110.0070.0337.71
4.3.100.0000.0337.71
4.3.90.0100.0237.71
4.3.80.0000.0437.71
4.3.70.0030.0337.71
4.3.60.0030.0337.71
4.3.50.0000.0337.71
4.3.40.0030.0377.71
4.3.30.0000.0337.71
4.3.20.0100.0237.71
4.3.10.0000.0237.71
4.3.00.0070.0237.71

preferences:
57.37 ms | 401 KiB | 5 Q