3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Runner { public function run() { $result = $this->process(); $result(); } private function process() { $func = array($this, 'do_run'); return function() use ($func) { call_user_func($func, 'bar'); }; } private function do_run($param) { echo 'called ', __METHOD__, "with param '$param'\n"; } } $runner = new Runner(); $runner->run();

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.0150.00318.18
8.3.50.0150.01522.12
8.3.40.0110.00418.84
8.3.30.0120.00319.13
8.3.20.0040.00420.15
8.3.10.0050.00323.51
8.3.00.0080.00019.38
8.2.180.0160.00318.42
8.2.170.0120.00322.96
8.2.160.0030.01020.45
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0030.00522.11
8.2.110.0000.00922.13
8.2.100.0070.00417.78
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0000.00817.36
8.2.60.0080.00017.92
8.2.50.0060.00318.07
8.2.40.0030.00618.16
8.2.30.0040.00417.95
8.2.20.0000.00717.75
8.2.10.0040.00417.94
8.2.00.0050.00517.68
8.1.280.0110.00425.92
8.1.270.0080.00021.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00824.01
8.1.230.0030.00719.09
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.53
8.1.180.0030.00618.10
8.1.170.0040.00418.64
8.1.160.0030.00522.05
8.1.150.0000.00818.55
8.1.140.0000.00717.51
8.1.130.0050.00217.82
8.1.120.0040.00417.40
8.1.110.0000.00817.36
8.1.100.0000.00817.34
8.1.90.0000.00717.50
8.1.80.0040.00717.48
8.1.70.0030.00317.39
8.1.60.0080.00017.47
8.1.50.0080.00017.41
8.1.40.0040.00417.53
8.1.30.0030.00517.63
8.1.20.0000.00817.54
8.1.10.0000.00817.56
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0000.00718.45
8.0.270.0000.00817.25
8.0.260.0030.00317.30
8.0.250.0030.00316.95
8.0.240.0060.00316.98
8.0.230.0030.00316.89
8.0.220.0000.00716.90
8.0.210.0000.00716.82
8.0.200.0040.00416.85
8.0.190.0030.00316.95
8.0.180.0050.00216.96
8.0.170.0000.00816.82
8.0.160.0000.00716.86
8.0.150.0040.00416.89
8.0.140.0030.00316.86
8.0.130.0030.00313.23
8.0.120.0000.00716.75
8.0.110.0030.00616.92
8.0.100.0000.00816.71
8.0.90.0000.00716.93
8.0.80.0090.00616.92
8.0.70.0030.00516.94
8.0.60.0070.00016.88
8.0.50.0050.00216.89
8.0.30.0110.01216.88
8.0.20.0090.01017.40
8.0.10.0000.00716.87
8.0.00.0160.00816.83
7.4.330.0060.00015.00
7.4.320.0000.00816.63
7.4.300.0000.00716.50
7.4.290.0030.00316.57
7.4.280.0030.00616.40
7.4.270.0030.00516.38
7.4.260.0050.00316.59
7.4.250.0000.00716.47
7.4.240.0050.00316.59
7.4.230.0030.00316.61
7.4.220.0060.01216.54
7.4.210.0090.00616.45
7.4.200.0050.00216.32
7.4.190.0030.00316.47
7.4.160.0080.00816.58
7.4.150.0150.00417.40
7.4.140.0060.01117.86
7.4.130.0120.00616.53
7.4.120.0120.00516.47
7.4.110.0120.00616.59
7.4.100.0140.00316.63
7.4.90.0070.01016.52
7.4.80.0150.00419.39
7.4.70.0120.00416.48
7.4.60.0110.00516.60
7.4.50.0050.00316.43
7.4.40.0100.00322.77
7.4.30.0090.00616.44
7.4.00.0100.00714.95
7.3.330.0050.00213.43
7.3.320.0000.00513.21
7.3.310.0030.00316.41
7.3.300.0040.00416.40
7.3.290.0190.00016.36
7.3.280.0080.01016.33
7.3.270.0140.00317.40
7.3.260.0070.01016.38
7.3.250.0090.00916.49
7.3.240.0060.01616.52
7.3.230.0160.00016.39
7.3.210.0080.00816.45
7.3.200.0070.01119.39
7.3.190.0150.00916.51
7.3.180.0060.00916.41
7.3.170.0140.00716.36
7.3.160.0100.00616.17
7.3.120.0060.00614.77
7.2.330.0070.01016.78
7.2.320.0070.01016.50
7.2.310.0100.00716.76
7.2.300.0070.01016.44
7.2.290.0030.01216.44
7.1.70.0040.00416.73
7.1.60.0110.01419.33
7.1.50.0030.01017.07
7.1.00.0070.05722.36
7.0.200.0110.00414.74
7.0.140.0030.07322.09
7.0.100.0100.08719.98
7.0.90.0130.02319.79
7.0.80.0070.06319.88
7.0.70.0270.07019.88
7.0.60.0370.03320.01
7.0.50.0070.05020.37
7.0.40.0100.06020.14
7.0.30.0070.08319.99
7.0.20.0100.03320.16
7.0.10.0170.07020.16
7.0.00.0000.09020.00
5.6.280.0030.07320.90
5.6.250.0130.07020.74
5.6.240.0030.04020.63
5.6.230.0130.03020.43
5.6.220.0030.04020.57
5.6.210.0100.06020.64
5.6.200.0070.06321.09
5.6.190.0070.06321.04
5.6.180.0200.07721.18
5.6.170.0070.03721.06
5.6.160.0070.08021.07
5.6.150.0070.04321.07
5.6.140.0000.06721.08
5.6.130.0100.07721.03
5.6.120.0070.04721.01
5.6.110.0070.06021.05
5.6.100.0100.03721.09
5.6.90.0130.03320.95
5.6.80.0100.03720.43
5.6.70.0070.03720.39
5.6.60.0000.04320.30
5.6.50.0000.04020.54
5.6.40.0000.03720.37
5.6.30.0000.03720.54
5.6.20.0070.04320.40
5.6.10.0030.03320.39
5.6.00.0070.04020.45
5.5.380.0170.03320.33
5.5.370.0070.08020.41
5.5.360.0070.07720.37
5.5.350.0130.06320.41
5.5.340.0070.03720.90
5.5.330.0030.05020.81
5.5.320.0200.06320.71
5.5.310.0070.07320.90
5.5.300.0070.04720.86
5.5.290.0030.06320.89
5.5.280.0030.04320.89
5.5.270.0070.05020.83
5.5.260.0070.04020.84
5.5.250.0000.04320.64
5.5.240.0170.04020.15
5.5.230.0170.06020.30
5.5.220.0070.05320.17
5.5.210.0130.03320.28
5.5.200.0000.04320.19
5.5.190.0100.03020.16
5.5.180.0100.03720.00
5.5.160.0000.03720.09
5.5.150.0000.03720.10
5.5.140.0000.04320.26
5.5.130.0000.03720.23
5.5.120.0030.03320.25
5.5.110.0030.03320.24
5.5.100.0030.03320.19
5.5.90.0030.03319.96
5.5.80.0030.03019.95
5.5.70.0070.08720.15
5.5.60.0130.08720.13
5.5.50.0070.03320.14
5.5.40.0070.03720.06
5.5.30.0030.04719.94
5.5.20.0230.02020.14
5.5.10.0200.06320.11
5.5.00.0070.03720.03
5.4.450.0030.05019.46
5.4.440.0070.04319.23
5.4.430.0030.04019.46
5.4.420.0030.04019.48
5.4.410.0130.06719.07
5.4.400.0030.03719.13
5.4.390.0030.03319.12
5.4.380.0070.05018.90
5.4.370.0030.03719.05
5.4.360.0070.03719.02
5.4.350.0030.03019.21
5.4.340.0130.02719.05
5.4.320.0100.02719.16
5.4.310.0100.03719.21
5.4.300.0070.02719.25
5.4.290.0070.03019.09
5.4.280.0070.02719.16
5.4.270.0000.04019.20
5.4.260.0030.03319.20
5.4.250.0030.03018.89
5.4.240.0030.03319.04
5.4.230.0000.03319.04
5.4.220.0030.08019.03
5.4.210.0130.04319.23
5.4.200.0030.07719.22
5.4.190.0070.05719.15
5.4.180.0070.03719.22
5.4.170.0070.04019.19
5.4.160.0130.03019.14
5.4.150.0100.03719.21
5.4.140.0070.03716.42
5.4.130.0100.03016.45
5.4.120.0030.03316.32
5.4.110.0100.06716.33
5.4.100.0100.04716.40
5.4.90.0070.04316.38
5.4.80.0030.03716.53
5.4.70.0100.02716.52
5.4.60.0130.05016.25
5.4.50.0030.06316.25
5.4.40.0070.03716.45
5.4.30.0000.04016.36
5.4.20.0030.03316.36
5.4.10.0000.04016.51
5.4.00.0030.03715.72
5.3.290.0070.03314.71
5.3.280.0000.07314.60
5.3.270.0070.08014.72
5.3.260.0100.03014.54
5.3.250.0030.06314.64
5.3.240.0100.06314.68
5.3.230.0000.08014.66
5.3.220.0100.06314.56
5.3.210.0100.08014.61
5.3.200.0030.05314.72
5.3.190.0000.05314.54
5.3.180.0070.03314.58
5.3.170.0130.02714.71
5.3.160.0070.04314.66
5.3.150.0030.04714.66
5.3.140.0000.03714.59
5.3.130.0030.05714.68
5.3.120.0070.03714.70
5.3.110.0070.03714.55
5.3.100.0070.04714.11
5.3.90.0070.07314.09
5.3.80.0030.04014.14
5.3.70.0170.06314.04
5.3.60.0000.03314.07
5.3.50.0070.07014.11
5.3.40.0070.03313.94
5.3.30.0000.06013.85
5.3.20.0100.06713.72
5.3.10.0030.03013.55
5.3.00.0000.06013.71
5.2.170.0070.02711.61
5.2.160.0000.03311.61
5.2.150.0030.04311.61
5.2.140.0000.04711.61
5.2.130.0000.04711.61
5.2.120.0030.03011.61
5.2.110.0070.05711.61
5.2.100.0030.02711.61
5.2.90.0000.04711.61
5.2.80.0030.02711.61
5.2.70.0100.02711.61
5.2.60.0030.04311.61
5.2.50.0070.02711.61
5.2.40.0030.05011.61
5.2.30.0070.04711.61
5.2.20.0030.04011.61
5.2.10.0000.03311.61
5.2.00.0000.02711.61
5.1.60.0030.03011.61
5.1.50.0030.03011.61
5.1.40.0030.02011.61
5.1.30.0030.05711.61
5.1.20.0030.06011.61
5.1.10.0000.05711.61
5.1.00.0070.05011.61
5.0.50.0030.01711.61
5.0.40.0070.01311.61
5.0.30.0000.05011.61
5.0.20.0030.02711.61
5.0.10.0070.01311.61
5.0.00.0000.07011.61
4.4.90.0070.02711.61
4.4.80.0070.02711.61
4.4.70.0070.01011.61
4.4.60.0000.02311.61
4.4.50.0000.02311.61
4.4.40.0000.05311.61
4.4.30.0030.02711.61
4.4.20.0030.01011.61
4.4.10.0000.01311.61
4.4.00.0030.02011.61
4.3.110.0000.01311.61
4.3.100.0030.03311.61
4.3.90.0000.03311.61
4.3.80.0000.02311.61
4.3.70.0070.02311.61
4.3.60.0000.03311.61
4.3.50.0030.03011.61
4.3.40.0000.05011.61
4.3.30.0000.01711.61
4.3.20.0000.03311.61
4.3.10.0000.01311.61
4.3.00.0000.02711.61

preferences:
47.09 ms | 400 KiB | 5 Q