3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inc($a, $b, &$c) { ++$a; ++$b; ++$c; ++$d; } $a = 1; $b = 1; $c = 1; $params = array($a, &$b, &$c); call_user_func_array('inc', $params); var_dump($params);

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.0070.01318.55
8.3.50.0110.01121.21
8.3.40.0120.00318.70
8.3.30.0070.01019.04
8.3.20.0050.00320.34
8.3.10.0040.00421.50
8.3.00.0000.00819.11
8.2.180.0040.01216.88
8.2.170.0110.00422.96
8.2.160.0140.00722.13
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00819.77
8.2.110.0060.00320.38
8.2.100.0050.00519.76
8.2.90.0050.00317.75
8.2.80.0080.00018.93
8.2.70.0000.00817.63
8.2.60.0030.00517.75
8.2.50.0080.00017.93
8.2.40.0050.00319.35
8.2.30.0060.00319.30
8.2.20.0030.00617.76
8.2.10.0020.00518.02
8.2.00.0040.00417.72
8.1.280.0140.00325.92
8.1.270.0000.00918.88
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00020.49
8.1.230.0090.00317.95
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00817.23
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0070.00017.62
8.1.160.0040.00419.00
8.1.150.0000.00818.93
8.1.140.0040.00417.48
8.1.130.0000.00717.86
8.1.120.0040.00417.46
8.1.110.0050.00217.38
8.1.100.0040.00417.32
8.1.90.0050.00317.33
8.1.80.0050.00317.37
8.1.70.0030.00317.43
8.1.60.0000.00717.60
8.1.50.0000.00817.54
8.1.40.0030.00517.48
8.1.30.0000.00817.57
8.1.20.0000.00817.59
8.1.10.0030.00617.38
8.1.00.0040.00417.29
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0070.00018.34
8.0.270.0040.00417.23
8.0.260.0070.00017.21
8.0.250.0030.00316.91
8.0.240.0000.00817.00
8.0.230.0070.00017.00
8.0.220.0000.00716.92
8.0.210.0030.00316.97
8.0.200.0000.00716.90
8.0.190.0070.00017.00
8.0.180.0040.00416.97
8.0.170.0030.00516.89
8.0.160.0070.00016.87
8.0.150.0070.00016.81
8.0.140.0000.00816.91
8.0.130.0000.00513.43
8.0.120.0040.00416.95
8.0.110.0050.00216.86
8.0.100.0000.00717.00
8.0.90.0080.00017.00
8.0.80.0070.01116.98
8.0.70.0040.00417.00
8.0.60.0050.00216.93
8.0.50.0050.00316.94
8.0.30.0090.01216.97
8.0.20.0150.01217.40
8.0.10.0000.00817.09
8.0.00.0090.01316.96
7.4.330.0030.00315.07
7.4.320.0030.00316.54
7.4.300.0050.00216.47
7.4.290.0070.00016.58
7.4.280.0000.00716.50
7.4.270.0060.00016.45
7.4.260.0050.00316.47
7.4.250.0050.00316.38
7.4.240.0000.00716.59
7.4.230.0030.00416.62
7.4.220.0090.00916.48
7.4.210.0130.00716.66
7.4.200.0070.00016.41
7.4.160.0150.00016.36
7.4.150.0120.01217.40
7.4.140.0140.00517.86
7.4.130.0070.01016.49
7.4.120.0090.00716.49
7.4.110.0000.01816.42
7.4.100.0070.01116.53
7.4.90.0030.01416.46
7.4.80.0120.00819.39
7.4.70.0150.00616.48
7.4.60.0060.01016.55
7.4.50.0000.00816.38
7.4.40.0120.00616.37
7.4.30.0110.00716.22
7.4.00.0070.00715.10
7.3.330.0040.00313.36
7.3.320.0050.00013.23
7.3.310.0000.00816.37
7.3.300.0000.00716.40
7.3.290.0070.00716.37
7.3.280.0100.00616.30
7.3.270.0180.00917.40
7.3.260.0030.01916.26
7.3.250.0120.00816.38
7.3.240.0060.00916.59
7.3.230.0150.00316.39
7.3.210.0120.01216.45
7.3.200.0120.00419.39
7.3.190.0130.00316.63
7.3.180.0040.01216.61
7.3.170.0060.01216.35
7.3.160.0140.00316.40
7.2.330.0170.01416.66
7.2.320.0090.01216.52
7.2.310.0040.01216.27
7.2.300.0060.01016.32
7.2.290.0140.00616.40
7.2.60.0030.00516.93
7.1.200.0100.00015.66
7.1.70.0000.01217.21
7.1.60.0130.01019.22
7.1.50.0090.01216.38
7.1.00.0100.07022.54
7.0.200.0070.00016.39
7.0.140.0070.03721.92
7.0.60.0100.05319.94
7.0.50.0170.07017.87
7.0.40.0100.04020.14
7.0.30.0300.06720.27
7.0.20.0230.03720.30
7.0.10.0000.05720.23
7.0.00.0130.08320.18
5.6.280.0030.07321.11
5.6.210.0070.08020.51
5.6.200.0000.04318.13
5.6.190.0100.08320.33
5.6.180.0400.04320.66
5.6.170.0200.05020.56
5.6.160.0200.07320.55
5.6.150.0030.08018.27
5.6.140.0070.05018.26
5.6.130.0070.05018.29
5.6.120.0100.05021.02
5.6.110.0030.05020.98
5.6.100.0070.04721.14
5.6.90.0100.06020.98
5.6.80.0100.03720.44
5.5.350.0230.08020.50
5.5.340.0100.05318.05
5.5.330.0100.08720.26
5.5.320.0270.07720.27
5.5.310.0330.07320.42
5.5.300.0030.06717.91
5.5.290.0100.08017.95
5.5.280.0130.07720.65
5.5.270.0070.04320.82
5.5.260.0030.09020.77
5.5.250.0100.07720.69
5.5.240.0030.07720.27
5.4.450.0530.05719.59
5.4.440.0100.06319.50
5.4.430.0130.05719.21
5.4.420.0800.04319.46
5.4.410.0070.05719.42
5.4.400.0030.06019.08
5.4.390.0170.04719.13
5.4.380.0230.07018.55
5.4.370.0170.07318.83
5.4.360.0100.05718.77
5.4.350.0170.05718.51
5.4.340.0200.05018.77
5.4.320.0170.06018.46
5.4.310.0200.05018.52
5.4.300.0200.05018.78
5.4.290.0200.05018.62
5.4.280.0130.05718.71
5.4.270.0100.06018.89
5.4.260.0270.04018.74
5.4.250.0170.05318.73
5.4.240.0100.06018.80
5.4.230.0070.06318.77
5.4.220.0230.04718.82
5.4.210.0230.04318.75
5.4.200.0100.05716.62
5.4.190.0130.05318.72
5.4.180.0130.05318.77
5.4.170.0130.05318.73
5.4.160.0170.05018.60
5.4.150.0200.05018.72
5.4.140.0230.04016.32
5.4.130.0200.04716.29
5.4.120.0170.05016.27
5.4.110.0130.05016.28
5.4.100.0100.06016.43
5.4.90.0170.07016.48
5.4.80.0170.06316.31
5.4.70.0070.07716.41
5.4.60.0200.06716.41
5.4.50.0200.04316.39
5.4.40.0200.04316.41
5.4.30.0070.05716.26
5.4.20.0100.05316.25
5.4.10.0200.04316.23
5.4.00.0170.04715.78
5.3.290.0300.04314.76
5.3.280.0130.05314.61
5.3.270.0130.05314.65
5.3.260.0100.06014.65
5.3.250.0100.05714.64
5.3.240.0230.04314.62
5.3.230.0170.05014.81
5.3.220.0130.05314.78
5.3.210.0230.07014.58
5.3.200.0270.05714.69
5.3.190.0270.06014.75
5.3.180.0300.05714.69
5.3.170.0230.04314.61
5.3.160.0130.05714.69
5.3.150.0200.05014.65
5.3.140.0270.04714.59
5.3.130.0230.06714.58
5.3.120.0130.07714.56
5.3.110.0230.06714.53
5.3.100.0330.05014.24
5.3.90.0230.06314.05
5.3.80.0200.05714.20
5.3.70.0100.05314.00
5.3.60.0130.05313.98
5.3.50.0200.06314.04
5.3.40.0230.06013.95
5.3.30.0200.04713.93
5.3.20.0230.04313.68
5.3.10.0170.05713.86
5.3.00.0170.05013.69
5.2.170.0070.05311.37
5.2.160.0130.04011.37
5.2.150.0070.04711.18
5.2.140.0130.04311.19
5.2.130.0100.04311.15
5.2.120.0100.04311.21
5.2.110.0100.04311.21
5.2.100.0200.03711.18
5.2.90.0200.03711.16
5.2.80.0100.04311.21
5.2.70.0170.03711.21
5.2.60.0270.02711.12
5.2.50.0130.04011.15
5.2.40.0070.04710.97
5.2.30.0100.04311.04
5.2.20.0030.04710.94
5.2.10.0100.04010.98
5.2.00.0100.04010.73
5.1.60.0000.04710.13
5.1.50.0100.03310.00
5.1.40.0100.03310.04
5.1.30.0100.05010.38
5.1.20.0070.04010.40
5.1.10.0100.03710.17
5.1.00.0100.03710.17
5.0.50.0100.0278.66
5.0.40.0030.0308.54
5.0.30.0100.0408.21
5.0.20.0000.0338.24
5.0.10.0070.0278.30
5.0.00.0030.0478.16
4.4.90.0030.0236.00
4.4.80.0070.0205.88
4.4.70.0070.0205.86
4.4.60.0070.0205.88
4.4.50.0100.0175.88
4.4.40.0100.0405.90
4.4.30.0030.0235.96
4.4.20.0070.0206.07
4.4.10.0100.0176.07
4.4.00.0070.0335.92
4.3.110.0070.0205.91
4.3.100.0070.0205.94
4.3.90.0070.0205.79
4.3.80.0030.0375.77
4.3.70.0070.0275.77
4.3.60.0070.0275.88
4.3.50.0030.0335.90
4.3.40.0100.0335.74
4.3.30.0030.0234.66
4.3.20.0030.0234.52
4.3.10.0000.0274.58
4.3.00.0170.0137.76

preferences:
50.3 ms | 401 KiB | 5 Q