3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace HookInvoker\FileSystem { class PhpFunctionProducer { const FUNCTION_CODE = <<<PHP <?php /** * This function wau auto created, pleaee do not edit */ function :function: () { return \DrupalContainer\Registry::getContainer() ->get(':class:') ->hook(func_get_args()); } PHP; public function getPhpFunctionCode() { return self::FUNCTION_CODE; } public function create($function) { $code = str_replace( [':function:', ':class:'], [$function, 'sds.module.user_install'], $this->getPhpFunctionCode()); echo $code; } } } namespace { $x = new HookInvoker\FileSystem\PhpFunctionProducer(); $x->create('test_init'); }

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.0100.01018.31
8.3.50.0140.00621.98
8.3.40.0070.01018.97
8.3.30.0140.00019.08
8.3.20.0080.00020.22
8.3.10.0040.00421.94
8.3.00.0070.00019.18
8.2.180.0090.00618.54
8.2.170.0140.00722.96
8.2.160.0030.01322.28
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00419.76
8.2.110.0060.00322.22
8.2.100.0040.00717.78
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0050.00317.25
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0000.00718.16
8.2.30.0070.00019.44
8.2.20.0040.00417.57
8.2.10.0000.00817.95
8.2.00.0000.00817.70
8.1.280.0070.00725.92
8.1.270.0040.00419.01
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00323.65
8.1.230.0000.01018.95
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00917.34
8.1.190.0050.00317.35
8.1.180.0070.00018.10
8.1.170.0040.00718.41
8.1.160.0000.00721.96
8.1.150.0040.00418.90
8.1.140.0040.00419.22
8.1.130.0000.00617.87
8.1.120.0000.00717.43
8.1.110.0050.00217.48
8.1.100.0070.00017.35
8.1.90.0020.00517.45
8.1.80.0040.00317.36
8.1.70.0030.00317.37
8.1.60.0060.00317.47
8.1.50.0000.01017.53
8.1.40.0040.00417.45
8.1.30.0030.00517.60
8.1.20.0040.00417.70
8.1.10.0050.00217.56
8.1.00.0040.00417.54
8.0.300.0000.00918.77
8.0.290.0040.00416.88
8.0.280.0050.00218.45
8.0.270.0000.00717.17
8.0.260.0030.00317.30
8.0.250.0030.00317.05
8.0.240.0030.00316.92
8.0.230.0070.00017.06
8.0.220.0030.00316.86
8.0.210.0070.00016.89
8.0.200.0000.00617.00
8.0.190.0030.00517.04
8.0.180.0040.00416.93
8.0.170.0060.00316.96
8.0.160.0050.00316.88
8.0.150.0000.00816.84
8.0.140.0030.00716.93
8.0.130.0060.00013.35
8.0.120.0000.00816.91
8.0.110.0040.00416.95
8.0.100.0030.00517.00
8.0.90.0040.00416.90
8.0.80.0100.01017.02
8.0.70.0080.00016.85
8.0.60.0020.00516.85
8.0.50.0000.00716.99
8.0.30.0090.01117.22
8.0.20.0180.00617.40
8.0.10.0040.00416.98
8.0.00.0060.01416.76
7.4.330.0000.00515.15
7.4.320.0040.00416.57
7.4.300.0000.00616.59
7.4.290.0030.00316.59
7.4.280.0030.00616.50
7.4.270.0000.00716.63
7.4.260.0000.01016.48
7.4.250.0000.00716.57
7.4.240.0040.00316.51
7.4.230.0030.00316.50
7.4.220.0080.01116.61
7.4.210.0090.00616.61
7.4.200.0040.00416.54
7.4.160.0090.00616.38
7.4.150.0060.01917.40
7.4.140.0090.00817.86
7.4.130.0090.00716.64
7.4.120.0110.00616.48
7.4.110.0130.00916.38
7.4.100.0070.01016.48
7.4.90.0110.00716.40
7.4.80.0240.02019.39
7.4.70.0090.00916.57
7.4.60.0100.00716.48
7.4.50.0030.00316.49
7.4.40.0090.00916.64
7.4.30.0110.00716.61
7.4.00.0050.00914.96
7.3.330.0000.00613.40
7.3.320.0000.00513.38
7.3.310.0000.00716.43
7.3.300.0020.00516.29
7.3.290.0070.00016.43
7.3.280.0050.01116.39
7.3.270.0120.00817.40
7.3.260.0130.00316.73
7.3.250.0140.00616.59
7.3.240.0040.01216.38
7.3.230.0110.00716.47
7.3.210.0070.01016.30
7.3.200.0110.00919.39
7.3.190.0070.01016.39
7.3.180.0100.00716.31
7.3.170.0070.01116.49
7.3.160.0120.00616.67
7.3.120.0120.00314.72
7.3.110.0070.01014.76
7.3.100.0030.01314.88
7.3.90.0030.01014.72
7.3.80.0030.00614.79
7.3.70.0070.00714.91
7.3.60.0110.00714.59
7.3.50.0060.00614.98
7.3.40.0060.00614.60
7.3.30.0110.00314.85
7.3.20.0000.01516.63
7.3.10.0030.00816.59
7.3.00.0100.00316.81
7.2.330.0160.00516.56
7.2.320.0060.01016.43
7.2.310.0040.01116.30
7.2.300.0100.00716.81
7.2.290.0030.01416.47
7.2.250.0070.00314.93
7.2.240.0070.00715.00
7.2.230.0030.00615.08
7.2.220.0030.01314.88
7.2.210.0060.00315.02
7.2.200.0060.00914.83
7.2.190.0070.00714.82
7.2.180.0100.00715.05
7.2.170.0110.00715.10
7.2.60.0070.01017.04
7.2.00.0030.00919.34
7.1.330.0030.01015.36
7.1.320.0070.00315.88
7.1.310.0070.00715.68
7.1.300.0040.01115.78
7.1.290.0100.00715.46
7.1.280.0080.00515.79
7.1.270.0100.00715.66
7.1.260.0080.00415.86
7.1.200.0000.01515.90
7.1.100.0000.01118.01
7.1.70.0030.00717.12
7.1.60.0070.01319.46
7.1.50.0060.01616.90
7.1.00.0100.07022.36
7.0.200.0020.00516.27
7.0.140.0000.03721.92
7.0.60.0100.08020.03
7.0.50.0130.07017.72
7.0.40.0070.05720.23
7.0.30.0200.05020.09
7.0.20.0230.08020.10
7.0.10.0070.04320.08
7.0.00.0070.08720.07
5.6.280.0000.07720.90
5.6.210.0170.04020.73
5.6.200.0070.07318.19
5.6.190.0070.08020.77
5.6.180.0300.07320.63
5.6.170.0230.07720.48
5.6.160.0130.08020.39
5.6.150.0030.04718.19
5.6.140.0130.05018.18
5.6.130.0100.06718.17
5.6.120.0200.07321.00
5.6.110.0100.07720.95
5.6.100.0070.07721.01
5.6.90.0070.08720.95
5.6.80.0130.07720.40
5.5.350.0330.05320.42
5.5.340.0000.04717.98
5.5.330.0030.08720.56
5.5.320.0100.03720.29
5.5.310.0270.06020.33
5.5.300.0070.08017.98
5.5.290.0030.04318.06
5.5.280.0170.07320.65
5.5.270.0130.07320.86
5.5.260.0170.08020.87
5.5.250.0030.07020.59
5.5.240.0070.07720.20
5.4.450.0230.05019.41
5.4.440.0330.07019.52
5.4.430.0300.05719.63
5.4.420.0300.04719.45
5.4.410.0300.04319.21
5.4.400.0270.05018.98
5.4.390.0200.06019.22
5.4.380.0230.05319.24
5.4.370.0230.07019.31
5.4.360.0270.04019.16
5.4.350.0270.03719.07
5.4.340.0200.05019.16
5.4.320.0230.06019.15
5.4.310.0300.07019.09
5.4.300.0300.04018.85
5.4.290.0270.05319.13
5.4.280.0230.05019.21
5.4.270.0330.06318.86
5.4.260.0230.04318.85
5.4.250.0300.06719.22
5.4.240.0270.04319.06
5.4.230.0300.06718.97
5.4.220.0230.04018.98
5.4.210.0300.07319.21
5.4.200.0270.04019.21
5.4.190.0270.04719.19
5.4.180.0270.06019.14
5.4.170.0330.06318.86
5.4.160.0370.06319.13
5.4.150.0230.04019.22
5.4.140.0230.03316.36
5.4.130.0370.05716.29
5.4.120.0230.04016.35
5.4.110.0270.05016.55
5.4.100.0370.03716.21
5.4.90.0330.04316.55
5.4.80.0230.06716.35
5.4.70.0300.06016.43
5.4.60.0330.06316.34
5.4.50.0300.03016.54
5.4.40.0300.04016.43
5.4.30.0270.04016.32
5.4.20.0330.04716.51
5.4.10.0330.06316.23
5.4.00.0470.05315.90
5.3.290.0270.07314.89
5.3.280.0230.06014.50
5.3.270.0270.05314.77
5.3.260.0230.05014.83
5.3.250.0270.06314.61
5.3.240.0270.07014.82
5.3.230.0270.04714.51
5.3.220.0300.04714.47
5.3.210.0230.07314.47
5.3.200.0230.07314.65
5.3.190.0300.06714.56
5.3.180.0200.04714.54
5.3.170.0370.02714.65
5.3.160.0230.07014.81
5.3.150.0370.06314.47
5.3.140.0370.06014.54
5.3.130.0330.07314.45
5.3.120.0300.07314.67
5.3.110.0330.06714.70
5.3.100.0270.04714.11
5.3.90.0230.03714.18
5.3.80.0270.04714.06
5.3.70.0270.03314.10
5.3.60.0370.06314.12
5.3.50.0430.04713.86
5.3.40.0330.06313.86
5.3.30.0230.07313.81
5.3.20.0230.06713.61
5.3.10.0330.05313.89
5.3.00.0270.03713.75
5.2.170.0230.04712.75
5.2.160.0300.05012.75
5.2.150.0230.03712.75
5.2.140.0200.05012.75
5.2.130.0230.04712.75
5.2.120.0300.05312.75
5.2.110.0230.04012.75
5.2.100.0200.05712.75
5.2.90.0200.04712.75
5.2.80.0230.06012.75
5.2.70.0370.04712.75
5.2.60.0230.04712.75
5.2.50.0270.06012.75
5.2.40.0200.06012.75
5.2.30.0200.02712.75
5.2.20.0100.04012.75
5.2.10.0130.05012.75
5.2.00.0200.05712.75
5.1.60.0200.04012.75
5.1.50.0230.03712.75
5.1.40.0170.03312.75
5.1.30.0200.05312.75
5.1.20.0300.04312.75
5.1.10.0200.05312.75
5.1.00.0170.04312.75
5.0.50.0070.02712.75
5.0.40.0100.03312.75
5.0.30.0130.06012.75
5.0.20.0130.04312.75
5.0.10.0100.04312.75
5.0.00.0100.06012.75
4.4.90.0070.03712.75
4.4.80.0130.02712.75
4.4.70.0170.03012.75
4.4.60.0100.03312.75
4.4.50.0100.03312.75
4.4.40.0200.04012.75
4.4.30.0070.01712.75
4.4.20.0100.02712.75
4.4.10.0030.02712.75
4.4.00.0130.03312.75
4.3.110.0100.03312.75
4.3.100.0100.03712.75
4.3.90.0100.03312.75
4.3.80.0070.03012.75
4.3.70.0100.01712.75
4.3.60.0070.01712.75
4.3.50.0100.01712.75
4.3.40.0100.04312.75
4.3.30.0030.03012.75
4.3.20.0030.04012.75
4.3.10.0030.02712.75
4.3.00.0070.03012.75

preferences:
43.52 ms | 401 KiB | 5 Q