3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &testfunction() { global $testglobal; return ($testglobal=1); } $testglobal_link=&call_user_func_array("testfuncti on",array('testparam-1','testparam-2')); // $testglobal_link must be link to $testglobal at this stage print $testglobal_link; // trying to assign new value to $testglobal thru link $testglobal_link=2; // in theory we will get "2" as result print $testglobal; // but unfortunatly we will have "1" as result print $testglobal_link;

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.0060.01018.43
8.3.50.0050.01421.02
8.3.40.0080.00818.79
8.3.30.0050.00820.29
8.3.20.0040.00420.39
8.3.10.0040.00421.95
8.3.00.0050.00322.51
8.2.180.0090.00618.28
8.2.170.0100.00622.96
8.2.160.0030.01120.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.41
8.2.110.0100.00022.01
8.2.100.0080.00319.45
8.2.90.0000.00719.05
8.2.80.0050.00319.30
8.2.70.0000.00817.63
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0000.00918.16
8.2.30.0040.00418.06
8.2.20.0050.00317.52
8.2.10.0000.00817.59
8.2.00.0030.00517.68
8.1.280.0070.01425.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.72
8.1.230.0080.00419.08
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.41
8.1.180.0100.00020.15
8.1.170.0080.00018.45
8.1.160.0000.00722.10
8.1.150.0000.00818.38
8.1.140.0000.00717.26
8.1.130.0030.00617.82
8.1.120.0050.00317.33
8.1.110.0040.00417.27
8.1.100.0050.00317.33
8.1.90.0000.00817.21
8.1.80.0000.00717.35
8.1.70.0000.00717.28
8.1.60.0030.00617.42
8.1.50.0070.00017.41
8.1.40.0040.00417.49
8.1.30.0040.00417.53
8.1.20.0000.00817.55
8.1.10.0000.00717.46
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0030.00517.18
8.0.280.0000.00718.34
8.0.270.0030.00317.06
8.0.260.0060.00016.82
8.0.250.0030.00316.98
8.0.240.0000.00716.98
8.0.230.0000.00816.95
8.0.220.0000.01116.88
8.0.210.0070.00016.80
8.0.200.0030.00616.94
8.0.190.0060.00316.91
8.0.180.0050.00316.90
8.0.170.0090.00016.79
8.0.160.0050.00216.92
8.0.150.0040.00416.74
8.0.140.0000.00716.77
8.0.130.0030.00313.25
8.0.120.0040.00416.73
8.0.110.0030.00416.89
8.0.100.0050.00316.82
8.0.90.0000.00716.83
8.0.80.0070.00716.86
8.0.70.0030.00416.79
8.0.60.0050.00216.69
8.0.50.0000.00716.92
8.0.30.0140.00517.10
8.0.20.0100.01117.40
8.0.10.0000.00816.89
8.0.00.0090.00816.78
7.4.330.0000.00515.00
7.4.320.0000.00716.45
7.4.300.0000.00616.56
7.4.290.0000.00716.43
7.4.280.0040.00416.58
7.4.270.0000.00716.54
7.4.260.0030.00316.52
7.4.250.0050.00216.40
7.4.240.0020.00516.48
7.4.230.0000.00716.65
7.4.220.0120.00616.56
7.4.210.0130.00116.50
7.4.200.0070.00016.61
7.4.190.0070.00016.60
7.4.160.0060.01016.61
7.4.150.0060.01417.40
7.4.140.0080.01417.86
7.4.130.0090.00916.45
7.4.120.0110.00516.35
7.4.110.0150.00416.65
7.4.100.0090.01216.43
7.4.90.0070.01016.52
7.4.80.0070.01119.39
7.4.70.0140.00316.46
7.4.60.0060.00916.40
7.4.50.0080.00016.38
7.4.40.0070.01122.77
7.4.30.0000.01716.44
7.4.00.0070.00715.02
7.3.330.0000.00513.11
7.3.320.0030.00313.10
7.3.310.0070.00016.34
7.3.300.0000.00716.30
7.3.290.0030.01016.28
7.3.280.0060.00916.27
7.3.270.0060.01017.40
7.3.260.0090.00916.45
7.3.250.0090.01116.31
7.3.240.0130.00416.27
7.3.230.0060.01016.39
7.3.210.0100.00716.37
7.3.200.0100.00619.39
7.3.190.0040.01816.45
7.3.180.0000.01516.36
7.3.170.0090.01316.27
7.3.160.0090.00916.41
7.3.120.0070.00714.94
7.2.330.0120.00916.69
7.2.320.0090.00916.56
7.2.310.0110.01216.66
7.2.300.0090.01216.44
7.2.290.0060.00916.60
7.2.60.0090.00616.66
7.2.00.0060.00619.23
7.1.200.0030.00315.36
7.1.100.0000.01217.91
7.1.70.0050.00316.99
7.1.60.0100.01419.21
7.1.50.0030.01316.50
7.1.00.0030.03722.42
7.0.200.0340.00014.63
7.0.140.0000.07721.92
7.0.60.0070.05319.91
7.0.50.0100.03717.83
7.0.40.0070.08720.10
7.0.30.0330.07720.23
7.0.20.0300.07720.03
7.0.10.0170.05720.23
7.0.00.0000.04320.05
5.6.280.0070.07020.96
5.6.210.0030.07720.70
5.6.200.0030.08018.19
5.6.190.0070.08720.46
5.6.180.0230.06020.64
5.6.170.0230.04020.52
5.6.160.0030.09020.47
5.6.150.0030.04018.17
5.6.140.0030.07318.19
5.6.130.0070.05318.24
5.6.120.0070.04321.12
5.6.110.0200.06321.00
5.6.100.0100.07020.97
5.6.90.0030.04320.98
5.6.80.0100.07720.38
5.6.70.0270.07020.59
5.5.350.0070.08320.37
5.5.340.0100.08017.98
5.5.330.0030.06020.57
5.5.320.0230.08020.28
5.5.310.0230.08020.30
5.5.300.0030.05017.95
5.5.290.0170.06717.99
5.5.280.0130.04020.97
5.5.270.0030.04320.84
5.5.260.0070.08320.76
5.5.250.0170.07720.68
5.5.240.0000.05320.04
5.4.450.0770.05319.39
5.4.440.0700.06019.47
5.4.430.0700.05319.69
5.4.420.0500.06319.35
5.4.410.0130.05319.21
5.4.400.0330.05718.77
5.4.390.0330.07018.46
5.4.380.0130.06318.59
5.4.370.0330.06018.78
5.4.360.0200.06018.75
5.4.350.0100.04712.02
5.4.340.0070.03712.01
5.4.320.0100.04012.50
5.4.310.0050.04412.50
5.4.300.0090.03712.50
5.4.290.0060.04212.50
5.4.280.0070.04312.40
5.4.270.0070.03512.40
5.4.260.0050.04712.39
5.4.250.0130.05718.93
5.4.240.0070.07318.70
5.4.230.0100.05018.59
5.4.220.0170.06318.92
5.4.210.0070.05318.98
5.4.200.0070.07318.61
5.4.190.0100.07018.70
5.4.180.0070.06718.79
5.4.170.0070.08018.79
5.4.160.0100.05718.66
5.4.150.0070.07318.71
5.4.140.0130.05016.36
5.4.130.0100.04716.39
5.4.120.0100.07016.44
5.4.110.0030.06316.61
5.4.100.0070.06716.52
5.4.90.0170.06316.28
5.4.80.0070.05016.59
5.4.70.0000.07016.42
5.4.60.0100.05716.35
5.4.50.0070.05316.45
5.4.40.0070.07016.64
5.4.30.0070.05016.48
5.4.20.0170.05716.35
5.4.10.0200.06016.46
5.4.00.0100.05015.94
5.3.290.0090.03912.80
5.3.280.0170.04314.66
5.3.270.0100.06714.71
5.3.260.0070.06014.67
5.3.250.0100.05714.43
5.3.240.0000.07014.66
5.3.230.0000.05714.68
5.3.220.0070.06714.63
5.3.210.0030.05714.65
5.3.200.0200.06314.64
5.3.190.0130.06014.53
5.3.180.0070.07014.62
5.3.170.0130.06014.38
5.3.160.0100.05314.62
5.3.150.0070.05714.74
5.3.140.0200.04714.64
5.3.130.0070.05714.63
5.3.120.0070.07314.63
5.3.110.0100.08014.45
5.3.100.0130.05714.05
5.3.90.0130.06713.98
5.3.80.0130.05714.11
5.3.70.0070.06713.98
5.3.60.0100.05313.98
5.3.50.0130.05014.03
5.3.40.0100.04713.95
5.3.30.0070.07313.92
5.3.20.0130.06013.68
5.3.10.0130.05313.66
5.3.00.0100.07013.85
5.2.170.0030.05011.14
5.2.160.0000.05311.21
5.2.150.0070.04711.21
5.2.140.0100.05711.12
5.2.130.0070.04311.18
5.2.120.0070.04711.18
5.2.110.0130.03711.28
5.2.100.0100.05311.08
5.2.90.0070.04010.93
5.2.80.0070.06011.10
5.2.70.0000.06711.31
5.2.60.0100.04011.14
5.2.50.0100.04311.02
5.2.40.0030.04310.96
5.2.30.0170.05011.06
5.2.20.0030.05711.04
5.2.10.0000.04310.83
5.2.00.0030.05010.68
5.1.60.0030.05010.04
5.1.50.0100.03310.09
5.1.40.0030.0479.90
5.1.30.0100.05010.43
5.1.20.0000.04710.35
5.1.10.0000.04710.14
5.1.00.0030.03710.05
5.0.50.0000.0308.69
5.0.40.0000.0278.69
5.0.30.0000.0438.69
5.0.20.0070.0208.69
5.0.10.0100.0278.69
5.0.00.0000.0438.69
4.4.90.0030.0208.69
4.4.80.0030.0308.69
4.4.70.0100.0238.69
4.4.60.0000.0238.69
4.4.50.0030.0208.69
4.4.40.0070.0438.69
4.4.30.0000.0278.69
4.4.20.0030.0278.69
4.4.10.0030.0208.69
4.4.00.0030.0338.69
4.3.110.0000.0238.69
4.3.100.0030.0178.69
4.3.90.0000.0208.69
4.3.80.0030.0308.69
4.3.70.0000.0238.69
4.3.60.0000.0208.69
4.3.50.0030.0308.69
4.3.40.0000.0478.69
4.3.30.0070.0178.69
4.3.20.0030.0238.69
4.3.10.0070.0278.69
4.3.00.0030.0206.17

preferences:
45.88 ms | 400 KiB | 5 Q