3v4l.org

run code in 300+ PHP versions simultaneously
<?php // File "load.php". namespace Foo\Bar { class load { static public function arithmetic() { require_once __DIR__ . '/arithmetic.php'; } } } // File "arithmetic.php". namespace Foo\Bar\Functions { function add($a, $b) { return $a + $b; } const add = 'Foo\Bar\Function\add'; } // User app. namespace Some\App { use Foo\Bar\load; use Foo\Bar\Functions as f; //load::arithmetic(); <-- commented out only for this demo (cause we have no real file) echo f\add(5, 6); // 11 $callable = f\add; echo $callable(5, 6); // 11 }

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.70.0070.00716.47
8.3.60.0040.01116.75
8.3.50.0080.01122.12
8.3.40.0060.00918.98
8.3.30.0070.00719.13
8.3.20.0030.00520.34
8.3.10.0080.00021.77
8.3.00.0040.00419.26
8.2.190.0150.00016.58
8.2.180.0130.00716.50
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00819.44
8.2.110.0000.00920.97
8.2.100.0040.00817.63
8.2.90.0000.00719.23
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0120.00018.07
8.2.40.0040.00418.22
8.2.30.0030.00618.13
8.2.20.0050.00317.61
8.2.10.0040.00418.15
8.2.00.0000.00717.61
8.1.280.0110.01125.92
8.1.270.0040.00420.48
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0100.00023.66
8.1.230.0090.00318.78
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0080.00418.65
8.1.160.0000.00721.99
8.1.150.0020.00518.86
8.1.140.0040.00417.35
8.1.130.0030.00317.81
8.1.120.0000.00717.47
8.1.110.0000.00717.50
8.1.100.0000.00717.40
8.1.90.0000.00817.32
8.1.80.0040.00417.37
8.1.70.0040.00417.32
8.1.60.0040.00417.46
8.1.50.0030.00517.55
8.1.40.0000.00917.50
8.1.30.0030.00617.62
8.1.20.0040.00417.54
8.1.10.0000.00717.49
8.1.00.0000.00817.50
8.0.300.0030.00418.77
8.0.290.0040.00416.88
8.0.280.0050.00218.41
8.0.270.0030.00416.81
8.0.260.0030.00317.21
8.0.250.0080.00017.01
8.0.240.0030.00316.90
8.0.230.0040.00416.89
8.0.220.0070.00016.96
8.0.210.0000.00816.84
8.0.200.0040.00416.92
8.0.190.0070.00017.00
8.0.180.0040.00416.96
8.0.170.0080.00017.01
8.0.160.0050.00316.96
8.0.150.0000.00716.84
8.0.140.0080.00016.97
8.0.130.0000.00813.37
8.0.120.0080.00016.81
8.0.110.0040.00416.97
8.0.100.0040.00416.81
8.0.90.0040.00416.77
8.0.80.0060.01117.00
8.0.70.0040.00417.00
8.0.60.0070.00016.77
8.0.50.0040.00416.95
8.0.30.0090.01117.25
8.0.20.0110.00817.40
8.0.10.0040.00417.16
8.0.00.0150.00316.85
7.4.330.0000.00515.10
7.4.320.0000.00716.50
7.4.300.0000.00616.63
7.4.290.0000.00716.49
7.4.280.0020.00516.58
7.4.270.0070.00016.52
7.4.260.0000.00816.41
7.4.250.0040.00416.56
7.4.240.0020.00616.55
7.4.230.0000.00716.49
7.4.220.0150.00416.46
7.4.210.0040.01216.55
7.4.200.0000.00716.25
7.4.160.0080.00816.55
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0130.00516.53
7.4.120.0080.01116.49
7.4.110.0170.00416.66
7.4.100.0080.01316.44
7.4.90.0090.01216.59
7.4.80.0070.01019.39
7.4.70.0030.01316.51
7.4.60.0070.01016.33
7.4.50.0040.00416.49
7.4.40.0080.00816.54
7.4.30.0100.00716.65
7.4.00.0050.01114.85
7.3.330.0020.00213.39
7.3.320.0130.00013.36
7.3.310.0070.00016.19
7.3.300.0040.00416.26
7.3.290.0090.00716.30
7.3.280.0070.01216.36
7.3.270.0150.00317.40
7.3.260.0180.00616.36
7.3.250.0100.00816.55
7.3.240.0080.01216.43
7.3.230.0080.00916.39
7.3.210.0030.01416.68
7.3.200.0100.00719.39
7.3.190.0030.01316.39
7.3.180.0000.01616.42
7.3.170.0130.01016.53
7.3.160.0100.00716.74
7.3.120.0170.00014.75
7.3.110.0100.00714.82
7.3.100.0110.00714.99
7.3.90.0070.00714.91
7.3.80.0030.01014.77
7.3.70.0090.00414.69
7.3.60.0000.00914.83
7.3.50.0070.00714.93
7.3.40.0060.00614.95
7.3.30.0070.00714.87
7.3.20.0030.01316.48
7.3.10.0070.01016.72
7.3.00.0100.00716.73
7.2.330.0110.01316.58
7.2.320.0100.00616.85
7.2.310.0120.01616.65
7.2.300.0120.00616.73
7.2.290.0060.01316.73
7.2.250.0070.01115.18
7.2.240.0060.01214.96
7.2.230.0090.00615.00
7.2.220.0070.00715.24
7.2.210.0030.00914.94
7.2.200.0040.01514.77
7.2.190.0070.01114.86
7.2.180.0030.01015.08
7.2.170.0090.00315.01
7.2.160.0070.00715.00
7.2.150.0110.00416.94
7.2.140.0030.00716.91
7.2.130.0040.01216.54
7.2.120.0070.00716.59
7.2.110.0060.00616.87
7.2.100.0060.00916.86
7.2.90.0060.00616.74
7.2.80.0060.00616.74
7.2.70.0120.00316.91
7.2.60.0090.00716.97
7.2.50.0030.00617.03
7.2.40.0070.00716.62
7.2.30.0030.01416.75
7.2.20.0100.00316.78
7.2.10.0000.01416.73
7.2.00.0030.01118.20
7.1.330.0030.01315.80
7.1.320.0110.00015.63
7.1.310.0030.01215.74
7.1.300.0040.00715.49
7.1.290.0000.01415.70
7.1.280.0050.00315.52
7.1.270.0100.00315.73
7.1.260.0040.00815.63
7.1.250.0060.00915.49
7.1.240.0040.00715.55
7.1.230.0050.00515.87
7.1.220.0090.00615.50
7.1.210.0030.00615.86
7.1.200.0000.01215.61
7.1.190.0070.00715.81
7.1.180.0070.00715.79
7.1.170.0030.00615.70
7.1.160.0000.01515.75
7.1.150.0070.00715.85
7.1.140.0080.00415.77
7.1.130.0040.01115.53
7.1.120.0030.01315.71
7.1.110.0040.00415.85
7.1.100.0060.00416.86
7.1.90.0060.00615.88
7.1.80.0000.01015.76
7.1.70.0050.00716.25
7.1.60.0020.01517.60
7.1.50.0100.00916.27
7.1.40.0120.00315.91
7.1.30.0040.00415.83
7.1.20.0060.00615.78
7.1.10.0060.01015.67
7.1.00.0050.04319.18
7.0.330.0070.00315.27
7.0.320.0000.01115.04
7.0.310.0030.00615.47
7.0.300.0000.01315.22
7.0.290.0000.01215.38
7.0.280.0000.01615.38
7.0.270.0090.00315.33
7.0.260.0030.00715.48
7.0.250.0100.00715.47
7.0.240.0040.00415.42
7.0.230.0060.00615.37
7.0.220.0000.01315.50
7.0.210.0040.00415.56
7.0.200.0110.00815.09
7.0.190.0110.00315.20
7.0.180.0030.00615.34
7.0.170.0080.00615.38
7.0.160.0070.00415.42
7.0.150.0030.00615.38
7.0.140.0070.02518.73
7.0.130.0100.00615.14
7.0.120.0040.00715.50
7.0.110.0060.00615.43
7.0.100.0040.01115.43
7.0.90.0040.00415.22
7.0.80.0060.00615.45
7.0.70.0060.00315.33
7.0.60.0090.02017.61
7.0.50.0120.03216.63
7.0.40.0100.04017.17
7.0.30.0100.03717.05
7.0.20.0140.03117.08
7.0.10.0200.04317.12
7.0.00.0010.03317.09
5.6.400.0030.00714.25
5.6.390.0000.00914.10
5.6.380.0130.00314.16
5.6.370.0090.00614.30
5.6.360.0070.01014.45
5.6.350.0030.00714.50
5.6.340.0070.00714.11
5.6.330.0000.00914.40
5.6.320.0040.00714.55
5.6.310.0090.00314.24
5.6.300.0070.00714.19
5.6.290.0030.01014.38
5.6.280.0030.04217.62
5.6.270.0030.00714.46
5.6.260.0000.01114.33
5.6.250.0070.00714.23
5.6.240.0040.00814.45
5.6.230.0070.00714.34
5.6.220.0030.00614.26
5.6.210.0080.03717.54
5.6.200.0070.04216.26
5.6.190.0030.03717.46
5.6.180.0030.03817.44
5.6.170.0170.02717.38
5.6.160.0090.04217.38
5.6.150.0030.02716.34
5.6.140.0060.04416.37
5.6.130.0080.04016.35
5.6.120.0100.04017.51
5.6.110.0060.02417.84
5.6.100.0040.02517.57
5.6.90.0020.04817.75
5.6.80.0070.01817.26
5.6.70.2280.02217.16
5.6.60.0000.00914.44
5.6.50.0040.00813.94
5.6.40.0040.00714.15
5.6.30.0030.01014.20
5.6.20.0100.00014.21
5.6.10.0070.00714.22
5.6.00.0050.00514.19
5.5.380.0110.00414.48
5.5.370.0030.00614.23
5.5.360.0030.01014.41
5.5.350.0080.03817.26
5.5.340.0070.04816.14
5.5.330.0080.02317.41
5.5.320.0200.04617.35
5.5.310.0120.03017.36
5.5.300.0120.04216.06
5.5.290.0080.03816.28
5.5.280.0080.02017.66
5.5.270.0030.03217.67
5.5.260.0090.04117.45
5.5.250.0120.03017.42
5.5.240.0060.04117.25
5.5.230.0030.01114.39
5.5.220.0110.00414.43
5.5.210.0000.00814.29
5.5.200.0030.01314.39
5.5.190.0030.00614.29
5.5.180.0030.01014.14
5.5.170.0000.00814.45
5.5.160.0040.01114.28
5.5.150.0030.00514.07
5.5.140.0070.00314.30
5.5.130.0040.00814.42
5.5.120.0100.00314.06
5.5.110.0050.00514.08
5.5.100.0040.01114.19
5.5.90.0000.01514.09
5.5.80.0060.00614.32
5.5.70.0030.01014.38
5.5.60.0070.00714.39
5.5.50.0150.00014.34
5.5.40.0120.00314.12
5.5.30.0030.00614.14
5.5.20.0070.00714.35
5.5.10.0000.01314.37
5.5.00.0110.00314.23
5.4.450.0220.03216.70
5.4.440.0550.03016.76
5.4.430.0430.03016.71
5.4.420.0080.02816.78
5.4.410.0430.03316.47
5.4.400.0170.03016.39
5.4.390.0220.02216.32
5.4.380.0150.02916.33
5.4.370.0140.03016.37
5.4.360.0170.02716.35
5.4.350.0180.03216.35
5.4.340.0130.03116.29
5.4.330.0110.00013.94
5.4.320.0200.02816.33
5.4.310.0130.03216.41
5.4.300.0180.02516.35
5.4.290.0110.03116.35
5.4.280.0230.02916.35
5.4.270.0230.03216.32
5.4.260.0230.02316.37
5.4.250.0150.03516.34
5.4.240.0120.03416.25
5.4.230.0200.02916.20
5.4.220.0180.03216.24
5.4.210.0130.03416.20
5.4.200.0260.02815.24
5.4.190.0050.03716.35
5.4.180.0120.03116.25
5.4.170.0200.03316.28
5.4.160.0120.03316.24
5.4.150.0150.03216.33
5.4.140.0200.02815.11
5.4.130.0120.02815.19
5.4.120.0190.03915.08
5.4.110.0130.03515.15
5.4.100.0080.03015.14
5.4.90.0170.03015.10
5.4.80.0170.02515.06
5.4.70.0230.02615.18
5.4.60.0130.03015.08
5.4.50.0200.03115.07
5.4.40.0180.03615.09
5.4.30.0200.03815.16
5.4.20.0170.03015.08
5.4.10.0170.02615.17
5.4.00.0200.02514.86
5.3.290.0330.06014.84
5.3.280.0400.05714.61
5.3.270.0300.06014.88
5.3.260.0430.05314.78
5.3.250.0330.06014.88
5.3.240.0330.05714.58
5.3.230.0500.06014.80
5.3.220.0300.07714.60
5.3.210.0400.07714.84
5.3.200.0430.06014.61
5.3.190.0300.06014.74
5.3.180.0370.05714.57
5.3.170.0300.08014.61
5.3.160.0400.06714.68
5.3.150.0330.05714.67
5.3.140.0300.05714.66
5.3.130.0530.07014.62
5.3.120.0300.05314.59
5.3.110.0370.06014.58
5.3.100.0330.05714.04
5.3.90.0400.04314.00
5.3.80.0470.05014.01
5.3.70.0400.05714.05
5.3.60.0400.06014.02
5.3.50.0370.06313.99
5.3.40.0500.04314.09
5.3.30.0300.05314.01
5.3.20.0370.06713.75
5.3.10.0530.06013.65
5.3.00.0300.05713.70
5.2.170.0170.04311.10
5.2.160.0430.03711.20
5.2.150.0230.04311.20
5.2.140.0070.05311.16
5.2.130.0370.04011.08
5.2.120.0300.04711.15
5.2.110.0270.04011.07
5.2.100.0200.04011.02
5.2.90.0170.04311.01
5.2.80.0230.04011.23
5.2.70.0300.04011.06
5.2.60.0370.04311.04
5.2.50.0200.04310.99
5.2.40.0200.04311.02
5.2.30.0230.05011.02
5.2.20.0200.04010.99
5.2.10.0200.03310.81
5.2.00.0130.04710.68
5.1.60.0270.03310.14
5.1.50.0170.0339.95
5.1.40.0170.0409.99
5.1.30.0130.04010.36
5.1.20.0270.03010.40
5.1.10.0370.02710.13
5.1.00.0270.03010.04
5.0.50.0170.0338.64
5.0.40.0100.0338.43
5.0.30.0170.0478.23
5.0.20.0130.0278.23
5.0.10.0170.0408.26
5.0.00.0100.0578.27
4.4.90.0170.0275.91
4.4.80.0100.0305.88
4.4.70.0100.0275.81
4.4.60.0100.0235.89
4.4.50.0130.0205.92
4.4.40.0100.0435.89
4.4.30.0100.0235.81
4.4.20.0170.0335.95
4.4.10.0270.0305.88
4.4.00.0130.0375.95
4.3.110.0130.0235.88
4.3.100.0100.0205.83
4.3.90.0070.0205.80
4.3.80.0070.0375.78
4.3.70.0130.0235.77
4.3.60.0100.0305.78
4.3.50.0130.0205.76
4.3.40.0070.0375.80
4.3.30.0030.0274.56
4.3.20.0100.0234.54
4.3.10.0070.0304.53
4.3.00.0030.0207.32

preferences:
50.7 ms | 401 KiB | 5 Q