3v4l.org

run code in 300+ PHP versions simultaneously
<?php class f { function f(&$e, &$u, $f=false) { } } function getNew() { $a = func_get_args(); $c = array_shift($a); foreach ($a as $k => &$value) $a[$k] = $value; //return call_user_func_array(array('f', 'f'), $c); $r = new ReflectionClass($c); return $r->newInstanceArgs($a); } $e = new stdClass; $u = new stdClass; var_dump(getNew('f', $e, $u));

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.40.0130.00318.92
8.3.30.0030.01320.29
8.3.20.0060.00320.48
8.3.10.0030.00521.04
8.3.00.0090.00023.54
8.2.170.0110.00322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00721.06
8.2.110.0030.00622.11
8.2.100.0070.00418.03
8.2.90.0080.00019.20
8.2.80.0080.00018.05
8.2.70.0040.00817.50
8.2.60.0060.00318.16
8.2.50.0090.00018.07
8.2.40.0040.00418.00
8.2.30.0030.00619.32
8.2.20.0060.00317.66
8.2.10.0050.00317.92
8.2.00.0050.00217.69
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0110.00428.09
8.1.240.0040.00720.82
8.1.230.0040.00820.89
8.1.220.0080.00018.77
8.1.210.0050.00318.88
8.1.200.0030.00617.35
8.1.190.0040.00417.43
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0040.00418.96
8.1.150.0000.00918.71
8.1.140.0060.00317.38
8.1.130.0040.00417.84
8.1.120.0000.00717.39
8.1.110.0000.00717.49
8.1.100.0030.00317.43
8.1.90.0000.00817.46
8.1.80.0000.00817.47
8.1.70.0030.00317.44
8.1.60.0030.00617.64
8.1.50.0040.00417.47
8.1.40.0030.00517.42
8.1.30.0040.00417.64
8.1.20.0060.00317.58
8.1.10.0000.00717.62
8.1.00.0040.00417.41
8.0.300.0000.00719.85
8.0.290.0040.00417.04
8.0.280.0070.00018.46
8.0.270.0030.00317.27
8.0.260.0000.00716.82
8.0.250.0040.00416.93
8.0.240.0080.00017.06
8.0.230.0000.00816.94
8.0.220.0050.00316.91
8.0.210.0000.00716.88
8.0.200.0020.00516.99
8.0.190.0040.00417.06
8.0.180.0020.00516.89
8.0.170.0000.00816.95
8.0.160.0050.00316.84
8.0.150.0040.00416.93
8.0.140.0040.00416.96
8.0.130.0030.00313.33
8.0.120.0050.00316.79
8.0.110.0040.00417.03
8.0.100.0000.00716.90
8.0.90.0080.00016.87
8.0.80.0060.01016.93
8.0.70.0080.00016.96
8.0.60.0040.00416.79
8.0.50.0050.00316.88
8.0.30.0110.00616.97
8.0.20.0070.01317.40
8.0.10.0000.00716.98
8.0.00.0110.00716.84
7.4.330.0060.00014.88
7.4.320.0000.00716.52
7.4.300.0060.00016.54
7.4.290.0060.00016.41
7.4.280.0000.00716.49
7.4.270.0000.00716.63
7.4.260.0000.00613.23
7.4.250.0000.00716.46
7.4.240.0030.00316.53
7.4.230.0030.00316.62
7.4.220.0070.01316.57
7.4.210.0040.01216.55
7.4.200.0070.00016.62
7.4.190.0070.00016.46
7.4.160.0150.00616.64
7.4.150.0060.01017.40
7.4.140.0070.01217.86
7.4.130.0120.01516.46
7.4.120.0080.00916.73
7.4.110.0130.00316.52
7.4.100.0120.00916.66
7.4.90.0110.00616.61
7.4.80.0060.01319.39
7.4.70.0060.01216.68
7.4.60.0290.01716.41
7.4.50.0040.00416.45
7.4.40.0040.01222.77
7.4.30.0060.01016.58
7.4.00.0140.00014.61
7.3.330.0060.00013.39
7.3.320.0000.00513.21
7.3.310.0000.00716.40
7.3.300.0000.00716.51
7.3.290.0140.00016.45
7.3.280.0080.00916.43
7.3.270.0090.00917.40
7.3.260.0110.01018.24
7.3.250.0080.01216.67
7.3.240.0080.00716.43
7.3.230.0100.01016.39
7.3.210.0070.01016.47
7.3.200.0130.01019.39
7.3.190.0080.00816.64
7.3.180.0080.00816.55
7.3.170.0030.01316.36
7.3.160.0110.00616.48
7.3.120.0000.01515.07
7.3.110.0060.00614.90
7.3.100.0070.00715.18
7.3.90.0080.00314.84
7.3.80.0070.00314.94
7.3.70.0060.00614.87
7.3.60.0090.00914.91
7.3.50.0060.00914.76
7.3.40.0090.00614.91
7.3.30.0030.00914.80
7.3.20.0000.01616.51
7.3.10.0000.01216.71
7.3.00.0110.00316.74
7.2.330.0120.00616.74
7.2.320.0040.01416.79
7.2.310.0250.02716.63
7.2.300.0150.00316.74
7.2.290.0050.01116.80
7.2.240.0070.01015.15
7.2.230.0000.01215.01
7.2.220.0030.01015.12
7.2.210.0030.01015.00
7.2.200.0030.00715.14
7.2.190.0120.00614.95
7.2.180.0090.00615.30
7.2.170.0060.00915.18
7.2.160.0000.01415.18
7.2.150.0040.01216.95
7.2.140.0030.01316.60
7.2.130.0060.00616.79
7.2.120.0050.01016.89
7.2.110.0060.00716.92
7.2.100.0120.00316.82
7.2.90.0020.01016.96
7.2.80.0350.00516.94
7.2.70.0140.00316.95
7.2.60.0090.00616.85
7.2.50.0030.01317.00
7.2.40.0060.00816.90
7.2.30.0040.00817.02
7.2.20.0110.00416.97
7.2.10.0070.01016.99
7.2.00.0110.01017.63
7.1.330.0000.00915.68
7.1.320.0040.00715.77
7.1.310.0030.01015.78
7.1.300.0000.00915.91
7.1.290.0070.00315.98
7.1.280.0030.01015.75
7.1.270.0070.01015.86
7.1.260.0000.01616.04
7.1.250.0050.00515.82
7.1.240.0070.00315.71
7.1.230.0070.00715.90
7.1.220.0110.00415.81
7.1.210.0100.00015.44
7.1.200.0010.01015.63
7.1.190.0060.00315.88
7.1.180.0070.00715.70
7.1.170.0090.00315.87
7.1.160.0000.01615.82
7.1.150.0110.00316.01
7.1.140.0000.01215.92
7.1.130.0040.00415.90
7.1.120.0090.00316.03
7.1.110.0000.01415.51
7.1.100.0030.01016.93
7.1.90.0060.00615.74
7.1.80.0100.00715.75
7.1.70.0000.01016.61
7.1.60.0110.00817.54
7.1.50.0100.00716.02
7.1.40.0040.01115.86
7.1.30.0030.00515.61
7.1.20.0000.01015.89
7.1.10.0030.01015.76
7.1.00.0020.02319.09
7.0.330.0090.00315.13
7.0.320.0100.00315.24
7.0.310.0030.01115.55
7.0.300.0080.00415.08
7.0.290.0040.00715.17
7.0.280.0030.00715.27
7.0.270.0000.00915.43
7.0.260.0030.00915.50
7.0.250.0070.00415.24
7.0.240.0040.00815.20
7.0.230.0030.01015.35
7.0.220.0000.00715.26
7.0.210.0040.01115.13
7.0.200.0030.01216.08
7.0.190.0060.00615.38
7.0.180.0030.01015.48
7.0.170.0060.00915.35
7.0.160.0030.01315.17
7.0.150.0040.00415.32
7.0.140.0120.03218.43
7.0.130.0040.00815.53
7.0.120.0000.01415.32
7.0.110.0060.00315.53
7.0.100.0000.01515.33
7.0.90.0130.00015.13
7.0.80.0090.00315.45
7.0.70.0030.04518.60
7.0.60.0060.02618.63
7.0.50.0030.04718.67
7.0.40.0060.04516.65
7.0.30.0050.04416.88
7.0.20.0030.04216.77
7.0.10.0080.04316.64
7.0.00.0100.04016.79
5.6.380.0060.01014.47
5.6.370.0000.00914.37
5.6.360.0040.00714.44
5.6.350.0060.00614.30
5.6.340.0060.00614.53
5.6.330.0080.00314.71
5.6.320.0070.00714.71
5.6.310.0120.00314.23
5.6.300.0100.00314.32
5.6.290.0070.00714.40
5.6.280.0020.04117.79
5.6.270.0030.01014.59
5.6.260.0000.01314.39
5.6.250.0100.00614.56
5.6.240.0060.01014.43
5.6.230.0000.01414.79
5.6.220.0080.04217.55
5.6.210.0000.04717.51
5.6.200.0060.04417.76
5.6.190.0140.04017.66
5.6.180.0050.04317.82
5.6.170.0080.04717.71
5.6.160.0030.04817.76
5.6.150.0030.03017.74
5.6.140.0050.04317.71
5.6.130.0040.03617.66
5.6.120.0080.02817.83
5.6.110.0090.04217.71
5.6.100.0050.04417.57
5.6.90.0050.04617.56
5.6.80.0020.04417.48
5.6.70.0030.04517.28
5.6.60.0070.03217.22
5.6.50.0070.02817.29
5.6.40.0030.04617.32
5.6.30.0050.04517.25
5.6.20.0100.03817.18
5.6.10.0030.04517.35
5.6.00.0050.03717.37
5.5.380.0030.00911.57
5.5.370.0030.00311.19
5.5.360.0050.04315.64
5.5.350.0030.03815.84
5.5.340.0070.04216.19
5.5.330.0030.04316.06
5.5.320.0080.03816.03
5.5.310.0050.04115.89
5.5.300.0050.03615.73
5.5.290.0020.02615.79
5.5.280.0030.04516.15
5.5.270.0060.02615.97
5.5.260.0070.02316.04
5.5.250.0030.03415.69
5.5.240.0040.02215.56
5.5.230.0100.03215.76
5.5.220.0080.04215.56
5.5.210.0070.03815.63
5.5.200.0020.04315.55
5.5.190.0000.04315.51
5.5.180.0020.04515.58
5.5.170.0060.00611.11
5.5.160.0000.04615.65
5.5.150.0060.04315.79
5.5.140.0030.04415.53
5.5.130.0030.03815.63
5.5.120.0030.04315.74
5.5.110.0090.03315.72
5.5.100.0070.03415.66
5.5.90.0020.02415.61
5.5.80.0080.02115.57
5.5.70.0020.05015.77
5.5.60.0070.04215.46
5.5.50.0050.04115.68
5.5.40.0030.03815.46
5.5.30.0040.03415.64
5.5.20.0070.04315.69
5.5.10.0030.03015.57
5.5.00.0050.04315.43
5.4.450.0030.02715.21
5.4.440.0050.03715.17
5.4.430.0080.04015.27
5.4.420.0020.04015.18
5.4.410.0050.04515.25
5.4.400.0030.02214.95
5.4.390.0030.02215.02
5.4.380.0050.02415.11
5.4.370.0030.03914.97
5.4.360.0070.03715.05
5.4.350.0020.03314.93
5.4.340.0010.04315.13
5.4.330.0050.00010.99
5.4.320.0030.04314.97
5.4.310.0070.03214.96
5.4.300.0030.04215.12
5.4.290.0010.03415.07
5.4.280.0000.04715.16
5.4.270.0030.03015.11
5.4.260.0030.03515.08
5.4.250.0030.02514.86
5.4.240.0010.03015.16
5.4.230.0000.04514.98
5.4.220.0080.03215.07
5.4.210.0030.02815.21
5.4.200.0020.03015.03
5.4.190.0020.04415.06
5.4.180.0050.02815.07
5.4.170.0050.02615.09
5.4.160.0050.04115.10
5.4.150.0050.04314.92
5.4.140.0060.03613.73
5.4.130.0030.04213.92
5.4.120.0050.04013.85
5.4.110.0020.03513.62
5.4.100.0070.02513.76
5.4.90.0020.03513.76
5.4.80.0030.04213.84
5.4.70.0050.03713.62
5.4.60.0020.04213.72
5.4.50.0050.02713.78
5.4.40.0060.04013.80
5.4.30.0050.03813.88
5.4.20.0020.03813.80
5.4.10.0030.03913.88
5.4.00.0030.03613.38
5.3.290.0000.04712.75
5.3.280.0040.03412.65
5.3.270.0000.04412.71
5.3.260.0020.02912.63
5.3.250.0050.03812.67
5.3.240.0030.03112.65
5.3.230.0070.03512.67
5.3.220.0030.03012.60
5.3.210.0060.04112.71
5.3.200.0080.03712.69
5.3.190.0000.04412.63
5.3.180.0050.02712.65
5.3.170.0060.03912.70
5.3.160.0020.03312.67
5.3.150.0040.04312.61
5.3.140.0030.04212.64
5.3.130.0070.04012.60
5.3.120.0070.03812.63
5.3.110.0030.04512.64
5.3.100.0030.04312.38
5.3.90.0030.03812.41
5.3.80.0060.03612.36
5.3.70.0020.03612.38
5.3.60.0050.03812.37
5.3.50.0080.03612.32
5.3.40.0060.03612.36
5.3.30.0030.02712.34
5.3.20.0020.04212.17
5.3.10.0020.02612.24
5.3.00.0050.02012.20
5.2.170.0020.03811.44
5.2.160.0030.02611.44
5.2.150.0080.03011.44
5.2.140.0050.03011.44
5.2.130.0030.02611.44
5.2.120.0010.02011.44
5.2.110.0050.02011.44
5.2.100.0020.03611.44
5.2.90.0060.03111.44
5.2.80.0030.03211.44
5.2.70.0070.02811.44
5.2.60.0030.03411.44
5.2.50.0070.02811.44
5.2.40.0010.02611.44
5.2.30.0020.03311.44
5.2.20.0050.03211.44
5.2.10.0030.03511.44
5.2.00.0020.03011.44
5.1.60.0010.02811.44
5.1.50.0030.02811.44
5.1.40.0030.02711.44
5.1.30.0040.02711.44
5.1.20.0060.02211.44
5.1.10.0040.02411.44
5.1.00.0080.01711.44
5.0.50.0000.02711.44
5.0.40.0050.02311.44
5.0.30.0030.03411.44
5.0.20.0040.01711.44
5.0.10.0030.02211.44
5.0.00.0030.03011.44
4.4.90.0000.02211.44
4.4.80.0000.02111.44
4.4.70.0000.02111.44
4.4.60.0040.01711.44
4.4.50.0000.02111.44
4.4.40.0020.02911.44
4.4.30.0030.01811.44
4.4.20.0000.02111.44
4.4.10.0020.01911.44
4.4.00.0020.03011.44
4.3.110.0030.01511.44
4.3.100.0020.01711.44
4.3.90.0020.01711.44
4.3.80.0020.02711.44
4.3.70.0000.02211.44
4.3.60.0050.01511.44
4.3.50.0050.01711.44
4.3.40.0030.02511.44
4.3.30.0000.01911.44
4.3.20.0000.01811.44
4.3.10.0000.01511.44
4.3.00.0030.01811.44

preferences:
44.57 ms | 400 KiB | 5 Q