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, &$arg) { call_user_func_array(array('Testme', $func_name), $arg); } } $test = 2; Invoker::invoke('foo', $test); 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.0170.00016.63
8.3.50.0050.01021.91
8.3.40.0140.00718.88
8.3.30.0100.00319.04
8.3.20.0050.00220.33
8.3.10.0000.00923.48
8.3.00.0080.00021.02
8.2.180.0120.00318.29
8.2.170.0030.01322.96
8.2.160.0130.00020.58
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.35
8.2.110.0160.00620.52
8.2.100.0030.00917.91
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0030.00520.01
8.2.30.0040.00418.21
8.2.20.0070.00017.74
8.2.10.0080.00018.12
8.2.00.0040.00417.79
8.1.280.0070.01425.92
8.1.270.0090.00023.88
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0000.01023.68
8.1.230.0080.00423.89
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0050.00317.22
8.1.180.0060.00318.10
8.1.170.0030.00618.42
8.1.160.0000.00722.02
8.1.150.0040.00418.60
8.1.140.0060.00317.39
8.1.130.0030.00317.75
8.1.120.0040.00417.48
8.1.110.0000.00717.34
8.1.100.0040.00417.52
8.1.90.0000.00717.45
8.1.80.0070.00017.35
8.1.70.0000.00717.34
8.1.60.0000.00717.47
8.1.50.0030.00617.36
8.1.40.0050.00317.48
8.1.30.0040.00417.59
8.1.20.0080.00017.58
8.1.10.0020.00517.57
8.1.00.0050.00317.54
8.0.300.0040.00418.77
8.0.290.0000.00817.05
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0000.00617.25
8.0.250.0040.00417.01
8.0.240.0030.00516.91
8.0.230.0070.00016.96
8.0.220.0030.00617.00
8.0.210.0040.00417.04
8.0.200.0000.00617.06
8.0.190.0070.00016.93
8.0.180.0030.00316.86
8.0.170.0040.00417.00
8.0.160.0040.00416.90
8.0.150.0000.00716.98
8.0.140.0000.00716.92
8.0.130.0000.00513.35
8.0.120.0050.00316.85
8.0.110.0000.00816.81
8.0.100.0090.00016.89
8.0.90.0040.00416.91
8.0.80.0100.00717.00
8.0.70.0040.00416.96
8.0.60.0040.00416.87
8.0.50.0000.00716.73
8.0.30.0110.01017.07
8.0.20.0110.00917.40
8.0.10.0070.00016.94
8.0.00.0140.00416.96
7.4.330.0020.00215.00
7.4.320.0070.00016.37
7.4.300.0030.00316.59
7.4.290.0030.00616.52
7.4.280.0030.00616.43
7.4.270.0040.00416.59
7.4.260.0030.00316.45
7.4.250.0050.00316.61
7.4.240.0030.00316.52
7.4.230.0040.00416.45
7.4.220.0060.01216.65
7.4.210.0080.00816.62
7.4.200.0000.00716.70
7.4.190.0040.00416.74
7.4.160.0100.00616.59
7.4.150.0040.01617.40
7.4.140.0130.00917.86
7.4.130.0070.01116.46
7.4.120.0080.01016.61
7.4.110.0130.01016.66
7.4.100.0090.00916.51
7.4.90.0110.00716.50
7.4.80.0240.00019.39
7.4.70.0080.00816.58
7.4.60.0170.00316.60
7.4.50.0030.00616.55
7.4.40.0100.01016.28
7.4.30.0140.00416.50
7.4.00.0120.00315.11
7.3.330.0000.00513.32
7.3.320.0020.00213.36
7.3.310.0040.00416.18
7.3.300.0070.00016.35
7.3.290.0040.01116.25
7.3.280.0070.01216.34
7.3.270.0040.01217.40
7.3.260.0160.01016.71
7.3.250.0100.00816.43
7.3.240.0090.01016.37
7.3.230.0050.01016.39
7.3.210.0060.01116.42
7.3.200.0180.00319.39
7.3.190.0090.00916.38
7.3.180.0090.00616.28
7.3.170.0060.01316.50
7.3.160.0060.01016.58
7.3.120.0000.01314.66
7.2.330.0070.01116.54
7.2.320.0060.01616.28
7.2.310.0100.00716.38
7.2.300.0110.01116.24
7.2.290.0100.00716.52
7.2.110.0180.01116.45
7.2.60.0060.00617.04
7.2.00.0060.00619.31
7.1.200.0040.00815.70
7.1.100.0120.00618.17
7.1.70.0060.00617.32
7.1.60.0070.01719.46
7.1.50.0160.01316.85
7.1.00.0070.07722.36
7.0.200.0050.00516.48
7.0.140.0070.07022.02
7.0.70.0030.05321.72
7.0.60.0000.07021.68
7.0.50.0000.04022.12
7.0.40.0030.04020.18
7.0.30.0000.06320.11
7.0.20.0000.05320.13
7.0.10.0070.04020.03
7.0.00.0070.07020.09
5.6.280.0070.07021.13
5.6.220.0030.04720.48
5.6.210.0070.05320.77
5.6.200.0000.04721.14
5.6.190.0030.04721.17
5.6.180.0000.05021.01
5.6.170.0030.03321.04
5.6.160.0030.04021.02
5.6.150.0000.04321.01
5.6.140.0070.04021.18
5.6.130.0000.04321.02
5.6.120.0030.04021.06
5.6.110.0070.03721.16
5.6.100.0030.04321.09
5.6.90.0030.03720.91
5.6.80.0000.03320.39
5.6.70.0070.06020.42
5.6.60.0070.03720.43
5.6.50.0000.05720.44
5.6.40.0000.07320.31
5.6.30.0030.03720.40
5.6.20.0030.04320.52
5.6.10.0030.03720.48
5.6.00.0030.04020.36
5.5.360.0030.07720.39
5.5.350.0000.04320.39
5.5.340.0030.04020.91
5.5.330.0000.04320.87
5.5.320.0030.06020.76
5.5.310.0000.04320.93
5.5.300.0030.03720.93
5.5.290.0000.05320.64
5.5.280.0030.04020.79
5.5.270.0100.03320.62
5.5.260.0030.04020.85
5.5.250.0030.07720.71
5.5.240.0030.03720.24
5.5.230.0070.03020.29
5.5.220.0000.04020.15
5.5.210.0030.03720.25
5.5.200.0000.05020.11
5.5.190.0000.06020.26
5.5.180.0030.06720.15
5.5.160.0000.04720.14
5.5.150.0000.04320.27
5.5.140.0030.08319.99
5.5.130.0030.06020.10
5.5.120.0070.06720.25
5.5.110.0030.06320.11
5.5.100.0000.06320.09
5.5.90.0070.08020.16
5.5.80.0030.08020.06
5.5.70.0070.07320.06
5.5.60.0000.07320.08
5.5.50.0070.07720.16
5.5.40.0100.07020.04
5.5.30.0030.07020.00
5.5.20.0130.05020.07
5.5.10.0000.07020.00
5.5.00.0000.04719.97
5.4.450.0030.03719.38
5.4.440.0000.04019.35
5.4.430.0000.04019.17
5.4.420.0030.03719.22
5.4.410.0000.04019.29
5.4.400.0000.04019.14
5.4.390.0030.03719.18
5.4.380.0070.04318.95
5.4.370.0070.02718.85
5.4.360.0030.03719.23
5.4.350.0030.04019.21
5.4.340.0000.04018.87
5.4.320.0030.03719.16
5.4.310.0030.04019.18
5.4.300.0000.07319.18
5.4.290.0070.06018.84
5.4.280.0070.07719.20
5.4.270.0000.05318.90
5.4.260.0000.07719.05
5.4.250.0070.07319.15
5.4.240.0000.06319.04
5.4.230.0030.07319.08
5.4.220.0100.07318.94
5.4.210.0230.06319.15
5.4.200.0000.06319.11
5.4.190.0030.05019.05
5.4.180.0030.05018.86
5.4.170.0070.04718.86
5.4.160.0000.08019.06
5.4.150.0000.08319.18
5.4.140.0000.07316.52
5.4.130.0030.07316.54
5.4.120.0000.08016.24
5.4.110.0070.06716.43
5.4.100.0070.04716.50
5.4.90.0000.04716.57
5.4.80.0070.04716.55
5.4.70.0070.06716.50
5.4.60.0070.07316.32
5.4.50.0000.06716.48
5.4.40.0100.05316.46
5.4.30.0000.07016.36
5.4.20.0000.04016.42
5.4.10.0070.04316.39
5.4.00.0030.04015.90
5.3.290.0030.05014.80
5.3.280.0030.07714.60
5.3.270.0030.07714.67
5.3.260.0030.07714.66
5.3.250.0000.05014.67
5.3.240.0030.05014.71
5.3.230.0030.07314.66
5.3.220.0000.07014.52
5.3.210.0000.08314.60
5.3.200.0070.06014.50
5.3.190.0070.04714.63
5.3.180.0000.03714.62
5.3.170.0000.08314.55
5.3.160.0100.05714.65
5.3.150.0030.08014.53
5.3.140.0030.08014.52
5.3.130.0070.07314.51
5.3.120.0070.07014.52
5.3.110.0030.07714.66
5.3.100.0000.05013.99
5.3.90.0000.04713.96
5.3.80.0030.08714.15
5.3.70.0070.05314.16
5.3.60.0070.06714.00
5.3.50.0030.07014.01
5.3.40.0030.07013.89
5.3.30.0000.04313.96
5.3.20.0030.06313.81
5.3.10.0100.06313.77
5.3.00.0070.06713.62
5.2.170.0030.06012.50
5.2.160.0030.06012.50
5.2.150.0000.06012.50
5.2.140.0000.06712.50
5.2.130.0000.06712.50
5.2.120.0100.03312.50
5.2.110.0100.05312.50
5.2.100.0100.04312.50
5.2.90.0170.04712.50
5.2.80.0030.05312.50
5.2.70.0030.06012.50
5.2.60.0000.05012.50
5.2.50.0030.04712.50
5.2.40.0070.05312.50
5.2.30.0070.05712.50
5.2.20.0000.04712.50
5.2.10.0100.05312.50
5.2.00.0070.05312.50
5.1.60.0030.05312.50
5.1.50.0100.04712.50
5.1.40.0000.05012.50
5.1.30.0030.04312.50
5.1.20.0030.05312.50
5.1.10.0000.04312.50
5.1.00.0030.05012.50
5.0.50.0000.05012.50
5.0.40.0000.03712.50
5.0.30.0030.06312.50
5.0.20.0070.03712.50
5.0.10.0000.04712.50
5.0.00.0000.06012.50
4.4.90.0030.02712.50
4.4.80.0030.03012.50
4.4.70.0000.03012.50
4.4.60.0000.03012.50
4.4.50.0000.02712.50
4.4.40.0000.04312.50
4.4.30.0000.03012.50
4.4.20.0000.03712.50
4.4.10.0000.03312.50
4.4.00.0070.05312.50
4.3.110.0000.03712.50
4.3.100.0030.01712.50
4.3.90.0000.03712.50
4.3.80.0000.05012.50
4.3.70.0030.02312.50
4.3.60.0000.03312.50
4.3.50.0030.03012.50
4.3.40.0000.05312.50
4.3.30.0000.03012.50
4.3.20.0030.03712.50
4.3.10.0070.03312.50
4.3.00.0070.02712.50

preferences:
41.58 ms | 401 KiB | 5 Q