3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &testfunction() { global $testglobal; return ($testglobal=1); } $testglobal_link=&call_user_func_array("testfunction",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.40.0110.00718.80
8.3.30.0140.00020.31
8.3.20.0040.00420.30
8.3.10.0000.00822.16
8.3.00.0080.00022.40
8.2.170.0090.00922.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.01026.16
8.2.120.0050.00319.43
8.2.110.0060.00321.95
8.2.100.0040.00719.63
8.2.90.0080.00019.13
8.2.80.0040.00419.46
8.2.70.0000.00817.63
8.2.60.0060.00317.92
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00418.07
8.2.20.0000.00817.57
8.2.10.0000.00817.73
8.2.00.0050.00217.80
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00319.16
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0040.00417.40
8.1.180.0030.00620.20
8.1.170.0030.00618.55
8.1.160.0070.00022.18
8.1.150.0080.00018.58
8.1.140.0000.00717.45
8.1.130.0000.00817.83
8.1.120.0070.00017.40
8.1.110.0040.00417.27
8.1.100.0000.00817.32
8.1.90.0040.00417.41
8.1.80.0070.00017.40
8.1.70.0030.00317.31
8.1.60.0030.00617.51
8.1.50.0000.00717.40
8.1.40.0000.00817.41
8.1.30.0000.00717.62
8.1.20.0000.00817.68
8.1.10.0040.00417.56
8.1.00.0050.00317.45
8.0.300.0070.00018.77
8.0.290.0000.00817.15
8.0.280.0040.00418.38
8.0.270.0070.00017.33
8.0.260.0030.00316.79
8.0.250.0070.00016.94
8.0.240.0080.00016.99
8.0.230.0030.00316.89
8.0.220.0070.00316.87
8.0.210.0040.00416.86
8.0.200.0030.00316.85
8.0.190.0030.00616.96
8.0.180.0000.00816.85
8.0.170.0000.00816.97
8.0.160.0030.00516.85
8.0.150.0030.00616.73
8.0.140.0030.00316.78
8.0.130.0030.00313.32
8.0.120.0040.00416.88
8.0.110.0050.00316.87
8.0.100.0070.00016.98
8.0.90.0040.00416.88
8.0.80.0090.00716.90
8.0.70.0050.00316.74
8.0.60.0040.00416.71
8.0.50.0040.00416.75
8.0.30.0080.01116.99
8.0.20.0090.01117.40
8.0.10.0000.00817.04
8.0.00.0110.00716.82
7.4.330.0020.00215.00
7.4.320.0040.00416.60
7.4.300.0030.00316.41
7.4.290.0000.00716.46
7.4.280.0030.00616.61
7.4.270.0030.00316.61
7.4.260.0040.00416.63
7.4.250.0020.00516.46
7.4.240.0030.00316.55
7.4.230.0070.00016.30
7.4.220.0070.01716.58
7.4.210.0090.00416.60
7.4.200.0000.00716.48
7.4.190.0040.00416.56
7.4.160.0140.00316.47
7.4.150.0140.00417.40
7.4.140.0120.00817.86
7.4.130.0090.00916.52
7.4.120.0090.00816.57
7.4.110.0090.00916.55
7.4.100.0130.00416.55
7.4.90.0060.01216.57
7.4.80.0090.00919.39
7.4.70.0120.00616.51
7.4.60.0070.01016.54
7.4.50.0040.00416.44
7.4.40.0070.00822.77
7.4.30.0100.00716.55
7.4.00.0030.00914.90
7.3.330.0020.00213.15
7.3.320.0060.00013.30
7.3.310.0000.00716.47
7.3.300.0060.00016.36
7.3.290.0050.01116.28
7.3.280.0090.00716.38
7.3.270.0190.00017.40
7.3.260.0090.00916.61
7.3.250.0100.00716.35
7.3.240.0060.01016.47
7.3.230.0080.01116.39
7.3.210.0120.00916.53
7.3.200.0090.00619.39
7.3.190.0080.00816.37
7.3.180.0000.01616.51
7.3.170.0120.00916.36
7.3.160.0070.01416.34
7.3.120.0070.01014.96
7.3.110.0090.00614.84
7.3.100.0040.01114.90
7.3.90.0040.00415.00
7.3.80.0030.00715.08
7.3.70.0130.00614.84
7.3.60.0040.00914.92
7.3.50.0030.01014.74
7.3.40.0090.00914.92
7.3.30.0060.00914.61
7.3.20.0030.01216.72
7.3.10.0130.00316.44
7.3.00.0090.00316.62
7.2.330.0030.01316.68
7.2.320.0040.01516.46
7.2.310.0080.01716.50
7.2.300.0090.01216.20
7.2.290.0000.01616.61
7.2.250.0100.01014.90
7.2.240.0100.01015.07
7.2.230.0060.00914.78
7.2.220.0090.00615.12
7.2.210.0000.01315.00
7.2.200.0040.01114.75
7.2.190.0030.01114.94
7.2.180.0000.00914.93
7.2.170.0040.01514.96
7.2.60.0080.00816.70
7.2.00.0060.00919.23
7.1.330.0070.00715.42
7.1.320.0040.01115.46
7.1.310.0090.00015.65
7.1.300.0030.00615.73
7.1.290.0070.00715.64
7.1.280.0030.01315.74
7.1.270.0040.01415.73
7.1.260.0040.00715.68
7.1.200.0070.00715.91
7.1.100.0030.00718.16
7.1.70.0030.00717.09
7.1.60.0140.01119.21
7.1.50.0100.00716.50
7.1.00.0070.03322.43
7.0.200.0230.00314.53
7.0.140.0030.07021.98
7.0.60.0100.08719.89
7.0.50.0100.03717.89
7.0.40.0070.04020.18
7.0.30.0370.06320.38
7.0.20.0370.06020.26
7.0.10.0230.08320.19
7.0.00.0000.04320.14
5.6.280.0100.06721.08
5.6.210.0030.06320.57
5.6.200.0170.07018.29
5.6.190.0130.05020.38
5.6.180.0130.09020.61
5.6.170.0200.03720.54
5.6.160.0000.04720.51
5.6.150.0000.04318.23
5.6.140.0070.07318.14
5.6.130.0100.08018.18
5.6.120.0030.06020.99
5.6.110.0130.07721.00
5.6.100.0070.08020.98
5.6.90.0070.03720.98
5.6.80.0100.07720.29
5.6.70.0200.07720.56
5.5.350.0070.08020.30
5.5.340.0070.07317.97
5.5.330.0000.06020.40
5.5.320.0300.04720.38
5.5.310.0230.06720.21
5.5.300.0030.07717.98
5.5.290.0070.07017.97
5.5.280.0100.07320.77
5.5.270.0030.07320.88
5.5.260.0100.07320.82
5.5.250.0100.06020.68
5.5.240.0070.07320.29
5.4.450.0670.07719.31
5.4.440.0630.06019.63
5.4.430.0130.05019.30
5.4.420.0630.06319.18
5.4.410.0530.06719.57
5.4.400.0530.07718.52
5.4.390.0670.06018.61
5.4.380.0330.04318.80
5.4.370.0300.05718.80
5.4.360.0230.05318.57
5.4.350.0070.03312.02
5.4.340.0060.04112.02
5.4.320.0060.04212.50
5.4.310.0110.03712.50
5.4.300.0090.03812.50
5.4.290.0040.04112.50
5.4.280.0040.04112.40
5.4.270.0080.03612.39
5.4.260.0090.04312.40
5.4.250.0170.06318.92
5.4.240.0170.06018.86
5.4.230.0170.05018.95
5.4.220.0070.05718.61
5.4.210.0100.06318.64
5.4.200.0170.05018.89
5.4.190.0100.06018.75
5.4.180.0070.05718.96
5.4.170.0100.06018.75
5.4.160.0070.07718.96
5.4.150.0070.07018.91
5.4.140.0030.05716.37
5.4.130.0100.05316.30
5.4.120.0170.06016.54
5.4.110.0170.05716.57
5.4.100.0130.04016.58
5.4.90.0070.06316.48
5.4.80.0070.07016.59
5.4.70.0030.06716.30
5.4.60.0100.05316.59
5.4.50.0130.05016.29
5.4.40.0100.05016.55
5.4.30.0030.07016.31
5.4.20.0130.07016.25
5.4.10.0170.05016.55
5.4.00.0100.07015.83
5.3.290.0070.03712.80
5.3.280.0100.05014.58
5.3.270.0000.08314.59
5.3.260.0100.05314.68
5.3.250.0070.07314.43
5.3.240.0100.05714.82
5.3.230.0070.07014.68
5.3.220.0130.04314.78
5.3.210.0030.06014.58
5.3.200.0100.05014.54
5.3.190.0070.07014.53
5.3.180.0070.05714.69
5.3.170.0200.04014.62
5.3.160.0100.05314.53
5.3.150.0000.08314.55
5.3.140.0100.05314.52
5.3.130.0200.05714.63
5.3.120.0070.06014.61
5.3.110.0070.07314.45
5.3.100.0130.05714.03
5.3.90.0070.05314.00
5.3.80.0100.06714.24
5.3.70.0130.04713.98
5.3.60.0000.06314.02
5.3.50.0130.06014.01
5.3.40.0100.06714.12
5.3.30.0070.05013.89
5.3.20.0070.05313.76
5.3.10.0030.05713.65
5.3.00.0000.05313.66
5.2.170.0000.05311.23
5.2.160.0100.04011.14
5.2.150.0070.04311.13
5.2.140.0070.05011.20
5.2.130.0030.04311.26
5.2.120.0030.05711.08
5.2.110.0130.04311.19
5.2.100.0030.04011.18
5.2.90.0170.03711.10
5.2.80.0070.04011.16
5.2.70.0100.03711.15
5.2.60.0070.04711.21
5.2.50.0000.04711.11
5.2.40.0070.03711.17
5.2.30.0100.03711.19
5.2.20.0000.05710.86
5.2.10.0000.04310.84
5.2.00.0070.04310.80
5.1.60.0030.03710.09
5.1.50.0000.0409.95
5.1.40.0100.0309.80
5.1.30.0030.04010.24
5.1.20.0030.05310.41
5.1.10.0170.02710.08
5.1.00.0030.03710.05
5.0.50.0070.0338.69
5.0.40.0070.0278.69
5.0.30.0000.0478.69
5.0.20.0070.0338.69
5.0.10.0030.0278.69
5.0.00.0030.0438.69
4.4.90.0070.0238.69
4.4.80.0030.0308.69
4.4.70.0070.0178.69
4.4.60.0000.0238.69
4.4.50.0030.0208.69
4.4.40.0030.0378.69
4.4.30.0030.0278.69
4.4.20.0070.0238.69
4.4.10.0030.0278.69
4.4.00.0000.0378.69
4.3.110.0070.0208.69
4.3.100.0030.0238.69
4.3.90.0070.0238.69
4.3.80.0100.0308.69
4.3.70.0070.0178.69
4.3.60.0000.0278.69
4.3.50.0000.0238.69
4.3.40.0000.0338.69
4.3.30.0070.0208.69
4.3.20.0000.0278.69
4.3.10.0100.0138.69
4.3.00.0000.0236.17

preferences:
48.42 ms | 400 KiB | 5 Q