3v4l.org

run code in 300+ PHP versions simultaneously
<?php function by_ref(&$arg) { $arg = 42; } class ModuleHandler { public function invokeAll($hook, $args) { by_ref($args[0]); } } $moduleHandler = new ModuleHandler(); $moduleHandler->invokeAll('example', array(23)); $array = array(25); $moduleHandler->invokeAll('example', $array); var_dump($array);

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.70.0090.00616.75
8.3.60.0110.00716.63
8.3.50.0190.01121.12
8.3.40.0110.00418.78
8.3.30.0030.01418.68
8.3.20.0040.00420.28
8.3.10.0040.00423.56
8.3.00.0040.00423.48
8.2.190.0090.00618.16
8.2.180.0150.00618.05
8.2.170.0040.01118.79
8.2.160.0120.00422.96
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00419.77
8.2.120.0040.00426.35
8.2.110.0090.00022.18
8.2.100.0080.00418.03
8.2.90.0000.00818.98
8.2.80.0040.00417.97
8.2.70.0100.00017.63
8.2.60.0090.00017.93
8.2.50.0000.00818.07
8.2.40.0040.00422.18
8.2.30.0040.00420.52
8.2.20.0050.00217.70
8.2.10.0020.00517.99
8.2.00.0040.00418.09
8.1.280.0090.00625.92
8.1.270.0000.00923.91
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0030.00919.15
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0100.00017.36
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0020.00518.59
8.1.160.0070.00320.71
8.1.150.0040.00418.76
8.1.140.0050.00319.44
8.1.130.0040.00417.56
8.1.120.0040.00417.46
8.1.110.0040.00417.45
8.1.100.0030.00617.45
8.1.90.0040.00417.30
8.1.80.0050.00317.30
8.1.70.0070.00017.48
8.1.60.0040.00417.58
8.1.50.0030.00617.59
8.1.40.0000.00717.52
8.1.30.0040.00417.56
8.1.20.0040.00417.50
8.1.10.0040.00417.60
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0040.00418.31
8.0.270.0040.00417.25
8.0.260.0030.00317.20
8.0.250.0030.00316.93
8.0.240.0000.00716.90
8.0.230.0000.00716.90
8.0.220.0040.00416.78
8.0.210.0000.00816.82
8.0.200.0030.00316.74
8.0.190.0000.00716.92
8.0.180.0070.00016.83
8.0.170.0040.00416.88
8.0.160.0030.00316.80
8.0.150.0030.00516.79
8.0.140.0000.00916.78
8.0.130.0000.00513.27
8.0.120.0050.00316.81
8.0.110.0070.00016.80
8.0.100.0000.00816.62
8.0.90.0000.00816.73
8.0.80.0090.00616.83
8.0.70.0070.00016.86
8.0.60.0000.00716.71
8.0.50.0000.00816.80
8.0.30.0060.00917.04
8.0.20.0100.01017.40
8.0.10.0070.00016.90
8.0.00.0100.00816.88
7.4.330.0060.00016.66
7.4.320.0030.00316.50
7.4.300.0000.01016.50
7.4.290.0060.00316.62
7.4.280.0060.00316.60
7.4.270.0000.00716.42
7.4.260.0030.00616.46
7.4.250.0000.00716.55
7.4.240.0020.00516.50
7.4.230.0030.00316.41
7.4.220.0060.01216.62
7.4.210.0060.01016.65
7.4.200.0030.00316.51
7.4.160.0120.00416.49
7.4.150.0140.00317.40
7.4.140.0080.01417.86
7.4.130.0110.00916.54
7.4.120.0130.00816.46
7.4.110.0190.00816.66
7.4.100.0000.01716.53
7.4.90.0030.01716.32
7.4.80.0110.01219.39
7.4.70.0110.00616.38
7.4.60.0040.01316.50
7.4.50.0070.01016.39
7.4.40.0060.00916.59
7.4.30.0000.01516.37
7.4.00.0030.01314.82
7.3.330.0030.00313.23
7.3.320.0030.00313.23
7.3.310.0040.00416.47
7.3.300.0000.00716.36
7.3.290.0080.00916.37
7.3.280.0120.00616.35
7.3.270.0180.00717.40
7.3.260.0170.00016.35
7.3.250.0100.00916.41
7.3.240.0090.00916.39
7.3.230.0040.01216.62
7.3.210.0090.00616.54
7.3.200.0110.00919.39
7.3.190.0030.01316.63
7.3.180.0140.00716.60
7.3.170.0110.00616.27
7.3.160.0030.01316.25
7.2.330.0120.00616.83
7.2.320.0070.01116.74
7.2.310.0110.00616.61
7.2.300.0100.00616.60
7.2.290.0090.00916.72
7.2.60.0060.00916.82
7.2.00.0040.00819.34
7.1.200.0070.00715.80
7.1.100.0030.00617.94
7.1.70.0030.00617.18
7.1.60.0070.01719.20
7.1.50.0230.00834.86
7.1.00.0070.07322.42
7.0.200.0040.00416.81
7.0.60.0030.07321.66
7.0.50.0100.08017.80
7.0.40.0130.08020.10
7.0.30.0230.07320.17
7.0.20.0370.06320.24
7.0.10.0030.09320.10
7.0.00.0100.08320.33
5.6.280.0000.03321.02
5.6.210.0030.04020.72
5.6.200.0070.05018.22
5.6.190.0070.08720.52
5.6.180.0430.05320.55
5.6.170.0270.06020.51
5.6.160.0030.05020.48
5.6.150.0170.06318.17
5.6.140.0030.04018.15
5.6.130.0200.07018.14
5.6.120.0030.04721.00
5.6.110.0130.06721.10
5.6.100.0130.07721.00
5.6.90.0130.08021.00
5.6.80.0030.06720.41
5.5.350.0100.06320.44
5.5.340.0000.04317.95
5.5.330.0130.03020.42
5.5.320.0470.05020.30
5.5.310.0270.08320.35
5.5.300.0030.04017.96
5.5.290.0100.04718.07
5.5.280.0030.05320.77
5.5.270.0030.06020.89
5.5.260.0100.08320.88
5.5.250.0100.08020.61
5.5.240.0300.06720.24

preferences:
73.42 ms | 401 KiB | 5 Q