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(); exit(print_r($args, true)); $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.40.0030.01018.59
8.3.30.0030.01018.63
8.3.20.0040.00418.78
8.3.10.0080.00020.52
8.3.00.0050.00317.63
8.2.170.0130.00318.93
8.2.160.0110.00722.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.95
8.2.110.0060.00321.14
8.2.100.0090.00317.78
8.2.90.0030.00619.23
8.2.80.0040.00417.68
8.2.70.0040.00417.50
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0040.00418.06
8.2.20.0030.00617.80
8.2.10.0040.00417.86
8.2.00.0040.00417.87
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00320.75
8.1.230.0000.01121.10
8.1.220.0080.00017.79
8.1.210.0000.00918.88
8.1.200.0100.00017.23
8.1.190.0000.00817.43
8.1.180.0040.00418.10
8.1.170.0000.00818.91
8.1.160.0000.00718.89
8.1.150.0070.00018.59
8.1.140.0000.00717.45
8.1.130.0030.00317.70
8.1.120.0050.00217.37
8.1.110.0000.00717.52
8.1.100.0040.00417.44
8.1.90.0000.00717.40
8.1.80.0040.00417.45
8.1.70.0000.00717.50
8.1.60.0040.00417.59
8.1.50.0000.00817.53
8.1.40.0000.00817.56
8.1.30.0040.00417.65
8.1.20.0030.00517.63
8.1.10.0080.00017.66
8.1.00.0000.00717.48
8.0.300.0080.00019.83
8.0.290.0060.00316.63
8.0.280.0060.00318.44
8.0.270.0050.00317.36
8.0.260.0030.00316.79
8.0.250.0000.00716.89
8.0.240.0000.00717.04
8.0.230.0070.00017.00
8.0.220.0070.00016.96
8.0.210.0000.00716.98
8.0.200.0030.00317.05
8.0.190.0040.00416.92
8.0.180.0000.00716.88
8.0.170.0050.00316.86
8.0.160.0000.00716.99
8.0.150.0040.00417.00
8.0.140.0050.00616.96
8.0.130.0060.00013.42
8.0.120.0040.00416.95
8.0.110.0030.00617.01
8.0.100.0040.00416.85
8.0.90.0000.00717.02
8.0.80.0120.00616.95
8.0.70.0000.00717.02
8.0.60.0040.00416.99
8.0.50.0000.00816.97
8.0.30.0140.00816.99
8.0.20.0120.00716.99
8.0.10.0000.00717.06
8.0.00.0100.01016.86
7.4.330.0050.00013.00
7.4.320.0040.00416.63
7.4.300.0030.00316.59
7.4.290.0000.00616.41
7.4.280.0030.00816.65
7.4.270.0030.00316.52
7.4.260.0030.00313.24
7.4.250.0060.00316.51
7.4.240.0070.00016.65
7.4.230.0070.00016.58
7.4.220.0110.01516.69
7.4.210.0110.00616.59
7.4.200.0000.00716.61
7.4.190.0000.00716.65
7.4.160.0030.01216.57
7.4.150.0070.01416.38
7.4.140.0070.01416.53
7.4.130.0030.01716.58
7.4.120.0100.00916.49
7.4.110.0080.00816.48
7.4.100.0090.00916.57
7.4.90.0120.00616.41
7.4.80.0110.00616.46
7.4.70.0120.00916.31
7.4.60.0070.01016.53
7.4.50.0040.00416.64
7.4.40.0030.01316.40
7.4.30.0090.00616.71
7.4.00.0050.00715.01
7.3.330.0030.00313.17
7.3.320.0050.00013.23
7.3.310.0030.00316.35
7.3.300.0030.00316.32
7.3.290.0070.00716.30
7.3.280.0090.00916.30
7.3.270.0140.00316.41
7.3.260.0120.00816.28
7.3.250.0160.00216.27
7.3.240.0030.01316.38
7.3.230.0070.01516.32
7.3.210.0140.00316.54
7.3.200.0040.01819.39
7.3.190.0120.00916.41
7.3.180.0070.01316.36
7.3.170.0100.00716.58
7.3.160.0090.00816.32
7.3.120.0070.00514.65
7.3.110.0090.00814.63
7.3.100.0020.01414.45
7.3.90.0070.00514.83
7.3.80.0050.00914.62
7.3.70.0050.00814.80
7.3.60.0110.00514.60
7.3.50.0080.00514.66
7.3.40.0050.01014.64
7.3.30.0180.00014.77
7.3.20.0110.00416.52
7.3.10.0110.00716.64
7.3.00.0090.00816.52
7.2.330.0070.01116.63
7.2.320.0100.00716.47
7.2.310.0030.01916.74
7.2.300.0030.01216.36
7.2.290.0130.00316.68
7.2.250.0100.00714.77
7.2.240.0090.00914.78
7.2.230.0060.00914.59
7.2.220.0030.01014.90
7.2.210.0070.00814.86
7.2.200.0060.00914.79
7.2.190.0100.00314.99
7.2.180.0020.01415.00
7.2.170.0060.00414.96
7.2.160.0100.00714.90
7.2.150.0030.01016.71
7.2.140.0110.00716.82
7.2.130.0090.00916.78
7.2.120.0130.00316.92
7.2.110.0090.01116.81
7.2.100.0090.00616.60
7.2.90.0090.00616.70
7.2.80.0100.00616.71
7.2.70.0080.00816.85
7.2.60.0080.00916.54
7.2.50.0080.00716.86
7.2.40.0070.00916.68
7.2.30.0060.01016.82
7.2.20.0070.00916.79
7.2.10.0080.00716.91
7.2.00.0050.00917.71
7.1.330.0050.00815.64
7.1.320.0090.00715.53
7.1.310.0110.00715.74
7.1.300.0050.01115.56
7.1.290.0050.01015.61
7.1.280.0060.01115.64
7.1.270.0080.00815.81
7.1.260.0050.01015.87
7.1.250.0070.00915.71
7.1.240.0100.00715.78
7.1.230.0110.00415.82
7.1.220.0100.00715.80
7.1.210.0040.00815.91
7.1.200.0110.00715.61
7.1.190.0060.01015.48
7.1.180.0070.00715.79
7.1.170.0030.00915.62
7.1.160.0040.00815.73
7.1.150.0120.00315.73
7.1.140.0060.00915.32
7.1.130.0130.00015.52
7.1.120.0070.00715.54
7.1.110.0100.00715.73
7.1.100.0060.00916.91
7.1.90.0030.01415.47
7.1.80.0090.00315.35
7.1.70.0080.00516.26
7.1.60.0140.00517.50
7.1.50.0080.01316.21
7.1.40.0090.00315.65
7.1.30.0180.00015.81
7.1.20.0100.00315.79
7.1.10.0030.01015.76
7.1.00.0060.03719.06
7.0.330.0100.01014.97
7.0.320.0060.00915.34
7.0.310.0030.01315.30
7.0.300.0090.00615.39
7.0.290.0100.00315.27
7.0.280.0070.01015.52
7.0.270.0030.00915.29
7.0.260.0090.00615.09
7.0.250.0070.01015.48
7.0.240.0120.00615.51
7.0.230.0070.00415.34
7.0.220.0090.00315.16
7.0.210.0100.00715.41
7.0.200.0560.00514.91
7.0.190.0110.00415.38
7.0.180.0070.00715.25
7.0.170.0070.01015.09
7.0.160.0030.00715.26
7.0.150.0030.00915.46
7.0.140.0080.04218.58
7.0.130.0070.00714.95
7.0.120.0040.02918.76
7.0.110.0090.00615.29
7.0.100.0100.00715.24
7.0.90.0100.00615.30
7.0.80.0100.00715.48
7.0.70.0150.00315.36
7.0.60.0170.04118.56
7.0.50.0130.04016.66
7.0.40.0120.02216.77
7.0.30.0130.02016.85
7.0.20.0120.02516.81
7.0.10.0230.02816.76
7.0.00.0110.02216.86
5.6.380.0070.00414.52
5.6.370.0100.01014.53
5.6.360.0150.00814.23
5.6.350.0140.00314.20
5.6.340.0000.01513.87
5.6.330.0130.00614.54
5.6.320.0110.00814.50
5.6.310.0150.00414.01
5.6.300.0120.00914.65
5.6.290.0110.00814.15
5.6.280.0120.03817.73
5.6.270.0030.01214.21
5.6.260.0030.01014.11
5.6.250.0070.01113.90
5.6.240.0040.01114.16
5.6.230.0030.01013.88
5.6.220.0090.00914.26
5.6.210.0090.03617.39
5.6.200.0110.03016.02
5.6.190.0160.02017.48
5.6.180.0130.02617.54
5.6.170.0100.02417.28
5.6.160.0070.03417.47
5.6.150.0050.03117.19
5.6.140.0160.02617.19
5.6.130.0160.04517.21
5.6.120.0210.03817.22
5.6.110.0120.02317.25
5.6.100.0100.03117.40
5.6.90.0220.03717.18
5.6.80.0230.02016.89
5.6.70.0170.04116.89
5.6.60.0120.03216.94
5.6.50.0170.03916.98
5.6.40.0160.03616.91
5.6.30.0190.02816.91
5.6.20.0140.02317.02
5.6.10.0190.03816.93
5.6.00.0130.03516.99
5.5.380.0080.00011.15
5.5.370.0110.00311.29
5.5.360.0040.00710.98
5.5.350.0100.04415.62
5.5.340.0070.04514.48
5.5.330.0140.01815.68
5.5.320.0100.02215.77
5.5.310.0070.02515.51
5.5.300.0170.02315.63
5.5.290.0140.03915.58
5.5.280.0110.05015.78
5.5.270.0150.03015.56
5.5.260.0150.02815.51
5.5.250.0200.02115.44
5.5.240.0140.02815.17
5.5.230.0130.02415.24
5.5.220.0340.02815.42
5.5.210.0180.03715.19
5.5.200.0140.04115.31
5.5.190.0180.03715.18
5.5.180.0160.02015.42
5.5.170.0000.01310.81
5.5.160.0150.04315.39
5.5.150.0150.04215.23
5.5.140.0200.02515.19
5.5.130.0220.02815.09
5.5.120.0190.03815.29
5.5.110.0210.03715.40
5.5.100.0140.03715.15
5.5.90.0190.03015.24
5.5.80.0180.02815.25
5.5.70.0210.03115.12
5.5.60.0280.02815.29
5.5.50.0210.02615.21
5.5.40.0220.02715.35
5.5.30.0210.04015.15
5.5.20.0200.02515.24
5.5.10.0200.03615.14
5.5.00.0200.03315.26
5.4.450.0080.02815.34
5.4.440.0180.02815.04
5.4.430.0170.02915.21
5.4.420.0120.03415.14
5.4.410.0180.03415.17
5.4.400.0100.04415.01
5.4.390.0120.02414.82
5.4.380.0130.02615.11
5.4.370.0170.03415.16
5.4.360.0180.02514.98
5.4.350.0150.03714.99
5.4.340.0140.03114.74
5.4.330.0040.00410.87
5.4.320.0170.02814.92
5.4.310.0130.03815.00
5.4.300.0170.04014.86
5.4.290.0200.03414.84
5.4.280.0140.04015.02
5.4.270.0130.03114.91
5.4.260.0090.03315.09
5.4.250.0120.02714.69
5.4.240.0160.02514.74
5.4.230.0240.03015.00
5.4.220.0180.02515.08
5.4.210.0150.02314.85
5.4.200.0200.02314.97
5.4.190.0170.03715.02
5.4.180.0170.03415.07
5.4.170.0100.02514.94
5.4.160.0160.02715.00
5.4.150.0190.03714.90
5.4.140.0200.03813.70
5.4.130.0180.02713.83
5.4.120.0150.03013.71
5.4.110.0210.01513.72
5.4.100.0150.02013.54
5.4.90.0130.02213.66
5.4.80.0250.02713.56
5.4.70.0110.02313.64
5.4.60.0130.03713.55
5.4.50.0180.03013.71
5.4.40.0200.03213.51
5.4.30.0150.03213.61
5.4.20.0070.03713.49
5.4.10.0140.03913.68
5.4.00.0200.02013.40
5.3.290.0160.02512.67
5.3.280.0180.03012.62
5.3.270.0130.03012.54
5.3.260.0190.03812.44
5.3.250.0150.03212.63
5.3.240.0150.03412.58
5.3.230.0180.03612.43
5.3.220.0100.02612.34
5.3.210.0140.02312.59
5.3.200.0130.02212.51
5.3.190.0160.03412.56
5.3.180.0190.03212.58
5.3.170.0170.02212.62
5.3.160.0170.03712.57
5.3.150.0130.04012.60
5.3.140.0170.03512.59
5.3.130.0190.03012.59
5.3.120.0140.03912.63
5.3.110.0180.03612.37
5.3.100.0200.02212.32
5.3.90.0130.02512.38
5.3.80.0160.02712.10
5.3.70.0130.04012.29
5.3.60.0190.02512.19
5.3.50.0130.03812.20
5.3.40.0180.03512.16
5.3.30.0130.03012.24
5.3.20.0160.03912.12
5.3.10.0190.02311.98
5.3.00.0150.03911.87
5.2.170.0150.03011.01
5.2.160.0210.02810.85
5.2.150.0160.02011.06
5.2.140.0130.03510.91
5.2.130.0150.01710.96
5.2.120.0120.02111.01
5.2.110.0160.02710.88
5.2.100.0120.02110.98
5.2.90.0120.03410.92
5.2.80.0100.03510.89
5.2.70.0150.02810.88
5.2.60.0120.03310.86
5.2.50.0170.02810.96
5.2.40.0140.03010.91
5.2.30.0090.03010.84
5.2.20.0170.01810.81
5.2.10.0200.03010.82
5.2.00.0130.02810.82
5.1.60.0120.02510.47
5.1.50.0080.02310.47
5.1.40.0100.02610.49
5.1.30.0180.02710.55
5.1.20.0070.03010.51
5.1.10.0140.02810.53
5.1.00.0110.01710.47
5.0.50.0080.02310.47
5.0.40.0050.01610.47
5.0.30.0050.01910.47
5.0.20.0090.01210.47
5.0.10.0060.01210.47
5.0.00.0100.02510.47
4.4.90.0090.01410.47
4.4.80.0070.01210.47
4.4.70.0120.01510.47
4.4.60.0080.01810.47
4.4.50.0030.01810.47
4.4.40.0070.01210.47
4.4.30.0030.02110.47
4.4.20.0100.01810.47
4.4.10.0050.01510.47
4.4.00.0060.02410.47
4.3.110.0050.01210.47
4.3.100.0030.01110.47
4.3.90.0030.01110.47
4.3.80.0090.02510.47
4.3.70.0060.01310.47
4.3.60.0030.01910.47
4.3.50.0110.01310.47
4.3.40.0110.02210.47
4.3.30.0040.02110.47
4.3.20.0040.02110.47
4.3.10.0060.02010.47
4.3.00.0050.01710.47

preferences:
37.16 ms | 400 KiB | 5 Q