3v4l.org

run code in 300+ PHP versions simultaneously
<?php // &$a,&$b,&$c,&$d function do_stuff(&$a,&$b,&$c,&$d) { $a += 1; $b += 1; $c += 1; $d += 1; $args = func_get_args(); foreach ($args as &$arg) { $arg += 1; } print_r(array($a, $b, $c, $d)); } $a = 1; $b = 2; $c = 3; $d = 4; print_r(array($a,$b,$c,$d)); do_stuff($a,$b,$c,$d); print_r(array($a,$b,$c,$d));

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.0100.00316.63
8.3.50.0130.00522.11
8.3.40.0110.00418.67
8.3.30.0140.00019.07
8.3.20.0080.00020.29
8.3.10.0050.00221.91
8.3.00.0040.00419.36
8.2.180.0130.00618.41
8.2.170.0120.00922.96
8.2.160.0070.01122.25
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00319.79
8.2.110.0040.00422.11
8.2.100.0040.00717.91
8.2.90.0000.00819.41
8.2.80.0090.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0030.00519.89
8.2.30.0050.00318.17
8.2.20.0040.00717.82
8.2.10.0080.00018.15
8.2.00.0040.00417.66
8.1.280.0070.01425.92
8.1.270.0080.00019.00
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0000.00922.43
8.1.230.0050.00521.00
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0060.00317.23
8.1.180.0070.00018.10
8.1.170.0080.00020.41
8.1.160.0000.00721.94
8.1.150.0030.00518.91
8.1.140.0080.00017.34
8.1.130.0000.00717.88
8.1.120.0070.00017.45
8.1.110.0000.00717.53
8.1.100.0020.00517.45
8.1.90.0020.00517.50
8.1.80.0000.00717.38
8.1.70.0000.00717.42
8.1.60.0060.00317.54
8.1.50.0050.00317.43
8.1.40.0030.00517.39
8.1.30.0000.00817.61
8.1.20.0040.00417.63
8.1.10.0040.00417.47
8.1.00.0070.00017.34
8.0.300.0020.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0030.00517.18
8.0.260.0030.00317.32
8.0.250.0030.00316.96
8.0.240.0030.00316.96
8.0.230.0020.00517.03
8.0.220.0040.00416.86
8.0.210.0050.00216.97
8.0.200.0060.00016.98
8.0.190.0040.00416.99
8.0.180.0060.00316.96
8.0.170.0080.00016.84
8.0.160.0000.00716.92
8.0.150.0070.00016.73
8.0.140.0000.00716.86
8.0.130.0000.00613.29
8.0.120.0030.00516.88
8.0.110.0040.00416.93
8.0.100.0000.00716.89
8.0.90.0000.00716.94
8.0.80.0090.01216.79
8.0.70.0030.00616.79
8.0.60.0040.00416.95
8.0.50.0000.00716.85
8.0.30.0120.00917.05
8.0.20.0130.01017.40
8.0.10.0030.00517.01
8.0.00.0080.00816.80
7.4.330.0050.00015.09
7.4.320.0000.00616.54
7.4.300.0090.00016.53
7.4.290.0000.00716.63
7.4.280.0030.00616.57
7.4.270.0000.00716.57
7.4.260.0040.00416.64
7.4.250.0080.00016.51
7.4.240.0020.00516.66
7.4.230.0070.00016.50
7.4.220.0100.00716.57
7.4.210.0080.00916.44
7.4.200.0000.00716.60
7.4.160.0130.00316.56
7.4.150.0140.00917.40
7.4.140.0090.01217.86
7.4.130.0090.01016.54
7.4.120.0120.00516.65
7.4.110.0070.01116.38
7.4.100.0140.00316.59
7.4.90.0080.01216.41
7.4.80.0090.01019.39
7.4.70.0100.01316.54
7.4.60.0030.01416.46
7.4.50.0040.00416.21
7.4.40.0100.00616.53
7.4.30.0120.00716.60
7.4.00.0040.00714.65
7.3.330.0070.00013.12
7.3.320.0090.00313.08
7.3.310.0030.00316.33
7.3.300.0040.00416.20
7.3.290.0000.00716.15
7.3.280.0060.01216.26
7.3.270.0110.00617.40
7.3.260.0130.00316.61
7.3.250.0080.01016.41
7.3.240.0100.01316.70
7.3.230.0160.00616.39
7.3.210.0070.01016.57
7.3.200.0140.00719.39
7.3.190.0070.01016.43
7.3.180.0050.01016.39
7.3.170.0090.00916.56
7.3.160.0100.00716.31
7.2.330.0120.00516.62
7.2.320.0100.01316.77
7.2.310.0040.01316.72
7.2.300.0060.01816.75
7.2.290.0030.01516.75
7.2.60.0120.00317.04
7.2.00.0000.01519.43
7.1.200.0080.00315.91
7.1.100.0000.01118.08
7.1.70.0050.00317.22
7.1.60.0140.01019.46
7.1.50.0070.01416.63
7.1.00.0070.07322.37
7.0.200.3920.00714.82
7.0.140.0000.07721.97
7.0.60.0030.05320.02
7.0.50.0030.07017.89
7.0.40.0170.07320.29
7.0.30.0200.08320.08
7.0.20.0270.07320.05
7.0.10.0270.07720.23
7.0.00.0030.04720.09
5.6.280.0100.06021.10
5.6.210.0130.07320.69
5.6.200.0070.08718.19
5.6.190.0070.05020.55
5.6.180.0230.08020.56
5.6.170.0230.05320.71
5.6.160.0030.04020.44
5.6.150.0070.04318.22
5.6.140.0070.05018.11
5.6.130.0100.03718.24
5.6.120.0030.06020.98
5.6.110.0170.08021.02
5.6.100.0130.07721.14
5.6.90.0170.07721.01
5.6.80.0100.07720.54
5.6.70.0230.07320.38
5.5.350.0100.08020.37
5.5.340.0100.08017.95
5.5.330.0070.08720.27
5.5.320.0070.06320.57
5.5.310.0230.07720.27
5.5.300.0000.04317.95
5.5.290.0070.04018.04
5.5.280.0070.07320.65
5.5.270.0000.04720.66
5.5.260.0130.06020.64
5.5.250.0100.05720.69
5.5.240.0030.04020.29
5.4.450.0730.05319.38
5.4.440.0370.06019.20
5.4.430.0200.05319.58
5.4.420.0230.06019.63
5.4.410.0570.07019.48
5.4.400.0270.04718.54
5.4.390.0130.05318.79
5.4.380.0200.05018.72
5.4.370.0230.05018.80
5.4.360.0170.05318.63
5.4.350.0200.05018.72
5.4.340.0170.05318.76
5.4.320.0170.05318.80
5.4.310.0170.05318.50
5.4.300.0170.05318.72
5.4.290.0200.05318.85
5.4.280.0200.05318.74
5.4.270.0200.05318.68
5.4.260.0170.05318.71
5.4.250.0330.07018.74
5.4.240.0200.06018.51
5.4.230.0170.05718.70
5.4.220.0130.05718.73
5.4.210.0200.07718.55
5.4.200.0170.05716.64
5.4.190.0170.06718.71
5.4.180.0170.05318.76
5.4.170.0230.06018.73
5.4.160.0200.04718.63
5.4.150.0130.05718.68
5.4.140.0100.06316.23
5.4.130.0100.05316.30
5.4.120.0200.06716.28
5.4.110.0130.05016.19
5.4.100.0170.05016.29
5.4.90.0130.05316.34
5.4.80.0170.05716.32
5.4.70.0130.05316.25
5.4.60.0130.05316.31
5.4.50.0100.05716.29
5.4.40.0300.04716.40
5.4.30.0200.04716.24
5.4.20.0130.05316.25
5.4.10.0130.05016.11
5.4.00.0200.04715.87
5.3.290.0170.05314.69
5.3.280.0100.05714.59
5.3.270.0130.06014.63
5.3.260.0230.05014.74
5.3.250.0130.06014.68
5.3.240.0230.05714.77
5.3.230.0100.06014.62
5.3.220.0100.06314.75
5.3.210.0130.05714.73
5.3.200.0170.05014.62
5.3.190.0100.05714.61
5.3.180.0100.06014.58
5.3.170.0200.04714.56
5.3.160.0200.05014.68
5.3.150.0230.04714.61
5.3.140.0170.06014.55
5.3.130.0100.06314.64
5.3.120.0230.05714.64
5.3.110.0170.05714.64
5.3.100.0070.06014.25
5.3.90.0100.05314.18
5.3.80.0230.04714.09
5.3.70.0130.05314.07
5.3.60.0200.04714.06
5.3.50.0170.05014.16
5.3.40.0170.05013.93
5.3.30.0230.04013.95
5.3.20.0230.04713.72
5.3.10.0270.06013.73
5.3.00.0130.05713.80
5.2.170.0030.05011.27
5.2.160.0230.03011.24
5.2.150.0200.04011.25
5.2.140.0030.05011.36
5.2.130.0100.05011.15
5.2.120.0070.04311.23
5.2.110.0130.04311.20
5.2.100.0170.03711.16
5.2.90.0130.03711.16
5.2.80.0170.04011.14
5.2.70.0270.03711.32
5.2.60.0130.04011.26
5.2.50.0100.04311.04
5.2.40.0170.03311.02
5.2.30.0070.04311.09
5.2.20.0100.04011.16
5.2.10.0230.02710.92
5.2.00.0130.03710.92
5.1.60.0100.03310.13
5.1.50.0000.04310.18
5.1.40.0100.03310.00
5.1.30.0000.04310.43
5.1.20.0130.03010.57
5.1.10.0070.04010.16
5.1.00.0100.03310.16
5.0.50.0100.0238.63
5.0.40.0100.0278.43
5.0.30.0070.0438.45
5.0.20.0170.0208.29
5.0.10.0130.0278.21
5.0.00.0030.0478.20
4.4.90.0100.0175.91
4.4.80.0030.0275.88
4.4.70.0030.0235.89
4.4.60.0070.0205.89
4.4.50.0100.0175.88
4.4.40.0070.0335.96
4.4.30.0070.0205.92
4.4.20.0100.0175.95
4.4.10.0070.0205.96
4.4.00.0070.0336.02
4.3.110.0000.0275.82
4.3.100.0070.0205.84
4.3.90.0070.0205.77
4.3.80.0070.0335.87
4.3.70.0100.0205.80
4.3.60.0070.0205.83
4.3.50.0100.0175.80
4.3.40.0030.0375.77
4.3.30.0030.0234.64
4.3.20.0000.0234.61
4.3.10.0000.0234.52
4.3.00.0100.0236.96

preferences:
85.37 ms | 401 KiB | 5 Q