3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testme { public static function foo(&$ref) { $ref = 1; } } class Invoker { public static function invoke($func_name) { $args = func_get_args(); $ref = &array_slice($args,1); call_user_func_array(array('Testme', $func_name), $ref); } } $test = 2; $testRef = &$test; Invoker::invoke('foo', $testRef); var_dump($test);

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.0110.00418.80
8.3.50.0130.00521.99
8.3.40.0110.00418.79
8.3.30.0140.00718.72
8.3.20.0090.00018.91
8.3.10.0030.00620.66
8.3.00.0080.00023.69
8.2.180.0120.00616.63
8.2.170.0040.01122.96
8.2.160.0070.00720.42
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0060.00320.90
8.2.100.0040.00817.84
8.2.90.0060.00319.22
8.2.80.0070.00018.03
8.2.70.0060.00317.63
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0050.00320.07
8.2.30.0080.00317.94
8.2.20.0040.00417.77
8.2.10.0000.00817.78
8.2.00.0040.00417.67
8.1.280.0150.00425.92
8.1.270.0040.00423.99
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.47
8.1.230.0040.00720.91
8.1.220.0060.00318.77
8.1.210.0040.00419.00
8.1.200.0060.00317.23
8.1.190.0050.00317.52
8.1.180.0040.00418.10
8.1.170.0000.00718.84
8.1.160.0040.00418.77
8.1.150.0040.00418.55
8.1.140.0030.00617.34
8.1.130.0000.00717.80
8.1.120.0070.00017.39
8.1.110.0040.00417.44
8.1.100.0080.00017.27
8.1.90.0000.00717.48
8.1.80.0050.00217.34
8.1.70.0070.00017.41
8.1.60.0030.00517.58
8.1.50.0000.00817.48
8.1.40.0040.00417.49
8.1.30.0060.00317.66
8.1.20.0000.00817.61
8.1.10.0000.00717.48
8.1.00.0030.00617.52
8.0.300.0070.00019.96
8.0.290.0040.00416.63
8.0.280.0030.00318.48
8.0.270.0000.00717.35
8.0.260.0060.00316.83
8.0.250.0030.00616.98
8.0.240.0060.00416.91
8.0.230.0070.00017.03
8.0.220.0050.00316.95
8.0.210.0000.00816.90
8.0.200.0000.00716.95
8.0.190.0030.00317.07
8.0.180.0080.00016.94
8.0.170.0000.00816.86
8.0.160.0090.00016.98
8.0.150.0060.00316.86
8.0.140.0060.00316.96
8.0.130.0060.00013.33
8.0.120.0080.00016.88
8.0.110.0020.00516.74
8.0.100.0040.00416.82
8.0.90.0050.00316.99
8.0.80.0130.00617.00
8.0.70.0040.00416.99
8.0.60.0000.00716.86
8.0.50.0040.00316.82
8.0.30.0140.00517.25
8.0.20.0090.00917.40
8.0.10.0000.00817.05
8.0.00.0110.00616.71
7.4.330.0060.00014.65
7.4.320.0000.00716.41
7.4.300.0060.00016.60
7.4.290.0000.00716.54
7.4.280.0000.00716.58
7.4.270.0030.00316.45
7.4.260.0030.00313.27
7.4.250.0040.00416.42
7.4.240.0000.00716.57
7.4.230.0000.00716.39
7.4.220.0060.01016.53
7.4.210.0040.01216.54
7.4.200.0040.00416.41
7.4.190.0070.00016.45
7.4.160.0130.00716.52
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0130.00616.64
7.4.120.0080.00816.43
7.4.110.0130.00316.54
7.4.100.0150.00616.51
7.4.90.0140.00316.50
7.4.80.0070.01019.04
7.4.70.0120.00816.56
7.4.60.0140.00316.47
7.4.50.0060.00316.44
7.4.40.0040.01522.27
7.4.30.0030.01416.67
7.4.10.0060.01215.07
7.4.00.0090.00814.96
7.3.330.0030.00313.32
7.3.320.0000.00513.26
7.3.310.0000.00716.34
7.3.300.0000.00716.36
7.3.290.0030.01016.34
7.3.280.0080.00816.37
7.3.270.0060.01217.40
7.3.260.0100.01218.24
7.3.250.0190.00016.48
7.3.240.0080.00816.36
7.3.230.0200.00416.59
7.3.210.0110.00516.36
7.3.200.0060.01119.39
7.3.190.0090.01216.36
7.3.180.0090.00616.39
7.3.170.0150.00016.41
7.3.160.0040.01216.64
7.3.130.0110.00714.85
7.3.120.0080.00614.74
7.3.110.0060.01314.73
7.3.100.0080.00414.81
7.3.90.0110.00014.78
7.3.80.0040.01214.62
7.3.70.0090.00314.61
7.3.60.0040.00814.77
7.3.50.0070.00614.85
7.3.40.0090.00914.80
7.3.30.0000.01014.52
7.3.20.0070.01016.66
7.3.10.0080.00716.53
7.3.00.0070.00516.60
7.2.330.0100.00716.55
7.2.320.0040.01316.55
7.2.310.0130.01016.75
7.2.300.0100.00616.29
7.2.290.0030.01316.35
7.2.260.0040.01215.10
7.2.250.0030.01614.74
7.2.240.0030.01014.75
7.2.230.0090.00615.17
7.2.220.0030.01115.05
7.2.210.0030.01314.93
7.2.200.0040.01414.64
7.2.190.0000.01214.63
7.2.180.0040.01114.93
7.2.170.0090.00914.91
7.2.160.0000.01714.69
7.2.150.0040.01116.83
7.2.140.0000.01317.04
7.2.130.0030.01016.97
7.2.120.0070.00716.83
7.2.110.0070.00816.75
7.2.100.0030.01016.70
7.2.90.0080.00616.78
7.2.80.0060.00916.86
7.2.70.0070.00616.86
7.2.60.0020.01216.71
7.2.50.0070.00816.57
7.2.40.0040.00816.72
7.2.30.0080.00816.70
7.2.20.0040.00916.67
7.2.10.0030.00916.77
7.2.00.0050.01117.62
7.1.330.0040.01115.72
7.1.320.0000.00915.70
7.1.310.0070.00715.63
7.1.300.0030.01015.87
7.1.290.0070.01015.42
7.1.280.0040.01215.73
7.1.270.0070.01015.58
7.1.260.0060.00615.76
7.1.250.0040.00715.75
7.1.240.0090.00615.64
7.1.230.0060.00915.89
7.1.220.0070.00715.79
7.1.210.0030.00615.95
7.1.200.0080.00415.72
7.1.190.0030.01015.70
7.1.180.0030.00915.77
7.1.170.0050.00515.76
7.1.160.0030.00715.89
7.1.150.0040.01115.60
7.1.140.0080.00315.30
7.1.130.0090.00615.45
7.1.120.0070.00715.71
7.1.110.0030.00715.66
7.1.100.0040.00916.91
7.1.90.0030.00915.44
7.1.80.0060.00315.60
7.1.70.0050.00516.45
7.1.60.0060.01317.50
7.1.50.0090.00816.21
7.1.40.0060.00615.60
7.1.30.0030.00715.55
7.1.20.0070.00715.72
7.1.10.0000.01215.71
7.1.00.0050.04018.83
7.0.330.0000.01815.30
7.0.320.0030.01015.42
7.0.310.0030.01015.25
7.0.300.0070.00715.18
7.0.290.0080.00415.34
7.0.280.0070.00715.39
7.0.270.0000.01415.19
7.0.260.0060.00315.20
7.0.250.0080.00715.61
7.0.240.0040.00715.07
7.0.230.0100.00315.38
7.0.220.0050.00315.40
7.0.210.0070.00715.38
7.0.200.0030.00915.93
7.0.190.0030.01015.33
7.0.180.0030.01015.63
7.0.170.0000.01115.36
7.0.160.0070.00715.37
7.0.150.0100.00315.36
7.0.140.0080.03718.73
7.0.130.0100.00315.53
7.0.120.0000.01315.25
7.0.110.0000.01115.04
7.0.100.0000.01615.41
7.0.90.0030.00915.22
7.0.80.0080.00415.15
7.0.70.0030.01315.39
7.0.60.0070.04517.64
7.0.50.0030.02316.61
7.0.40.0060.02216.74
7.0.30.0230.02316.80
7.0.20.0200.02616.72
7.0.10.0110.03616.82
7.0.00.0060.02116.82
5.6.400.0030.00914.38
5.6.390.0040.01214.18
5.6.380.0060.00314.49
5.6.370.0070.00714.27
5.6.360.0000.01414.11
5.6.350.0030.01314.16
5.6.340.0040.01213.74
5.6.330.0070.00714.48
5.6.320.0070.00714.26
5.6.310.0080.00814.20
5.6.300.0040.00414.05
5.6.290.0080.00414.17
5.6.280.0020.04017.65
5.6.270.0060.01214.07
5.6.260.0000.01314.16
5.6.250.0040.00713.96
5.6.240.0030.00614.23
5.6.230.0060.00913.94
5.6.220.0040.01514.51
5.6.210.0100.04417.24
5.6.200.0020.03216.08
5.6.190.0090.02217.11
5.6.180.0150.02717.38
5.6.170.0080.03017.30
5.6.160.0050.02517.39
5.6.150.0070.03516.27
5.6.140.0090.04116.20
5.6.130.0020.03616.39
5.6.120.0090.03517.61
5.6.110.0030.03517.70
5.6.100.0200.03517.42
5.6.90.0130.03917.62
5.6.80.0090.04117.07
5.6.70.0220.04117.33
5.6.60.0060.00914.03
5.6.50.0070.01114.29
5.6.40.0090.00614.37
5.6.30.0030.01314.45
5.6.20.0030.01414.20
5.6.10.0130.00314.07
5.6.00.0070.00714.21
5.5.380.0060.00914.20
5.5.370.0080.00013.95
5.5.360.0110.00713.85
5.5.350.2010.02317.33
5.5.340.0050.04215.97
5.5.330.0130.03817.24
5.5.320.0170.04517.30
5.5.310.0100.03617.34
5.5.300.0080.02316.06
5.5.290.0070.04516.31
5.5.280.0080.02117.62
5.5.270.0100.04017.68
5.5.260.0050.03817.33
5.5.250.0050.04317.42
5.5.240.0070.04017.19
5.5.230.0070.00714.17
5.5.220.0130.00313.92
5.5.210.0000.01214.20
5.5.200.0000.00914.33
5.5.190.0000.01414.23
5.5.180.0030.01313.73
5.5.170.0000.01413.83
5.5.160.0000.01713.99
5.5.150.0070.01014.20
5.5.140.0060.00914.17
5.5.130.0080.00414.25
5.5.120.0130.00314.18
5.5.110.0080.00814.28
5.5.100.0060.00913.77
5.5.90.0090.00314.37
5.5.80.0090.00014.00
5.5.70.0000.01113.83
5.5.60.0090.00613.99
5.5.50.0070.00714.16
5.5.40.0060.00613.94
5.5.30.0040.00714.16
5.5.20.0060.00914.27
5.5.10.0000.01414.26
5.5.00.0000.01414.14
5.4.450.0170.04316.24
5.4.440.0190.03916.27
5.4.430.0190.03316.15
5.4.420.0210.01816.16
5.4.410.0160.02216.17
5.4.400.0200.03515.89
5.4.390.0170.02116.02
5.4.380.0150.03015.96
5.4.370.0150.02816.06
5.4.360.0130.03216.03
5.4.350.0200.03715.88
5.4.340.0170.03716.04
5.4.330.0090.00312.90
5.4.320.0140.02915.89
5.4.310.0170.02016.11
5.4.300.0190.02516.02
5.4.290.0180.03515.95
5.4.280.0130.02815.94
5.4.270.0150.03916.06
5.4.260.0120.02416.04
5.4.250.0190.03616.03
5.4.240.0200.02815.88
5.4.230.0220.03515.94
5.4.220.0190.02615.99
5.4.210.0210.03016.01
5.4.200.0170.03816.10
5.4.190.0150.03816.04
5.4.180.0130.02015.87
5.4.170.0200.03216.07
5.4.160.0180.03716.01
5.4.150.0170.03116.07
5.4.140.0150.03714.64
5.4.130.0150.02514.65
5.4.120.0190.03614.65
5.4.110.0130.02414.65
5.4.100.0200.03814.73
5.4.90.0140.03514.66
5.4.80.0160.03014.61
5.4.70.0120.02514.65
5.4.60.0180.03314.63
5.4.50.0130.02014.68
5.4.40.0170.02814.66
5.4.30.0130.03314.72
5.4.20.0200.03514.64
5.4.10.0170.02214.61
5.4.00.0150.03814.34
5.3.290.0130.02413.83
5.3.280.0190.02513.75
5.3.270.0180.03813.79
5.3.260.0150.04213.72
5.3.250.0140.04113.77
5.3.240.0200.03513.71
5.3.230.0120.02913.74
5.3.220.0200.03313.77
5.3.210.0150.02513.74
5.3.200.0180.03513.73
5.3.190.0170.03513.72
5.3.180.0120.02813.78
5.3.170.0230.03013.78
5.3.160.0170.01813.76
5.3.150.0120.02413.73
5.3.140.0130.02313.85
5.3.130.0160.03913.72
5.3.120.0210.03313.68
5.3.110.0120.03013.76
5.3.100.0160.02513.43
5.3.90.0170.03713.42
5.3.80.0150.02413.43
5.3.70.0180.03513.50
5.3.60.0170.03813.41
5.3.50.0150.02313.47
5.3.40.0220.02313.47
5.3.30.0180.03313.36
5.3.20.0200.03113.30
5.3.10.0130.02313.29
5.3.00.0130.04113.24
5.2.170.0200.02712.22
5.2.160.0200.02712.22
5.2.150.0270.03312.22
5.2.140.0200.04012.22
5.2.130.0300.05312.22
5.2.120.0170.04712.22
5.2.110.0270.05312.22
5.2.100.0270.05312.22
5.2.90.0230.03012.22
5.2.80.0200.05312.22
5.2.70.0200.06012.22
5.2.60.0300.04012.22
5.2.50.0330.05312.22
5.2.40.0270.05312.22
5.2.30.0230.06012.22
5.2.20.0200.05012.22
5.2.10.0200.03312.22
5.2.00.0130.04012.22
5.1.60.0200.02712.22
5.1.50.0230.04312.22
5.1.40.0170.03312.22
5.1.30.0200.03712.22
5.1.20.0230.05012.22
5.1.10.0230.04012.22
5.1.00.0200.03012.22
5.0.50.0170.03712.22
5.0.40.0100.02312.22
5.0.30.0130.06012.22
5.0.20.0100.03312.22
5.0.10.0130.02312.22
5.0.00.0070.05012.22
4.4.90.0100.03712.22
4.4.80.0100.03712.22
4.4.70.0100.03712.22
4.4.60.0130.03012.22
4.4.50.0170.03012.22
4.4.40.0130.02712.22
4.4.30.0100.02012.22
4.4.20.0100.03712.22
4.4.10.0100.03712.22
4.4.00.0170.02312.22
4.3.110.0130.03012.22
4.3.100.0100.03012.22
4.3.90.0170.01712.22
4.3.80.0100.05312.22
4.3.70.0100.01712.22
4.3.60.0130.03012.22
4.3.50.0130.01312.22
4.3.40.0100.03012.22
4.3.30.0030.01712.22
4.3.20.0070.03012.22
4.3.10.0070.03312.22
4.3.00.0030.03012.22

preferences:
71.79 ms | 401 KiB | 5 Q