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; print_r(array($a, $b, $c, $d)); $args = func_get_args(); foreach ($args as &$arg) { $arg += 1; } } $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.0110.00316.88
8.3.50.0070.01122.06
8.3.40.0110.00418.71
8.3.30.0120.00319.22
8.3.20.0000.00720.38
8.3.10.0080.00021.90
8.3.00.0060.00319.38
8.2.180.0110.00716.63
8.2.170.0070.00722.96
8.2.160.0140.00621.94
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0000.00819.79
8.2.110.0000.00921.08
8.2.100.0080.00417.84
8.2.90.0000.00819.39
8.2.80.0050.00317.97
8.2.70.0070.00417.38
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00819.88
8.2.30.0000.00718.14
8.2.20.0050.00317.76
8.2.10.0040.00418.19
8.2.00.0080.00017.70
8.1.280.0100.00625.92
8.1.270.0030.01319.01
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0080.00417.21
8.1.230.0060.00620.78
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.13
8.1.180.0070.00018.10
8.1.170.0000.00920.25
8.1.160.0050.00222.02
8.1.150.0050.00218.81
8.1.140.0040.00417.44
8.1.130.0040.00417.84
8.1.120.0070.00017.53
8.1.110.0000.00717.38
8.1.100.0070.00017.38
8.1.90.0080.00017.39
8.1.80.0000.00717.37
8.1.70.0030.00317.45
8.1.60.0030.00517.49
8.1.50.0080.00017.50
8.1.40.0030.00617.40
8.1.30.0030.00617.61
8.1.20.0030.00517.58
8.1.10.0000.00717.48
8.1.00.0000.00717.49
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0070.00018.47
8.0.270.0000.00717.19
8.0.260.0030.00317.30
8.0.250.0030.00316.87
8.0.240.0000.00716.88
8.0.230.0040.00416.99
8.0.220.0000.00716.86
8.0.210.0040.00416.95
8.0.200.0000.00617.01
8.0.190.0050.00217.00
8.0.180.0040.00416.82
8.0.170.0060.00316.88
8.0.160.0050.00216.95
8.0.150.0040.00416.92
8.0.140.0030.00316.77
8.0.130.0060.00013.30
8.0.120.0070.00016.86
8.0.110.0040.00416.73
8.0.100.0000.00816.82
8.0.90.0050.00216.86
8.0.80.0070.01016.95
8.0.70.0030.00516.95
8.0.60.0040.00416.79
8.0.50.0050.00216.86
8.0.30.0070.01517.04
8.0.20.0080.01517.40
8.0.10.0080.00016.87
8.0.00.0120.00616.71
7.4.330.0000.00515.10
7.4.320.0030.00316.54
7.4.300.0060.00316.62
7.4.290.0000.00716.63
7.4.280.0000.00816.46
7.4.270.0030.00316.51
7.4.260.0030.00316.57
7.4.250.0030.00316.50
7.4.240.0040.00416.57
7.4.230.0070.00016.63
7.4.220.0060.01216.43
7.4.210.0060.01116.53
7.4.200.0000.00816.51
7.4.160.0040.01216.63
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0070.01016.44
7.4.120.0070.01116.52
7.4.110.0130.00616.27
7.4.100.0060.01216.55
7.4.90.0060.01216.58
7.4.80.0110.01419.39
7.4.70.0110.00316.53
7.4.60.0060.01016.64
7.4.50.0060.00016.19
7.4.40.0070.01016.53
7.4.30.0070.01016.47
7.4.00.0080.01014.96
7.3.330.0070.00013.38
7.3.320.0060.00613.05
7.3.310.0030.00316.33
7.3.300.0030.00316.32
7.3.290.0070.00016.35
7.3.280.0100.00716.30
7.3.270.0090.00917.40
7.3.260.0130.00416.38
7.3.250.0110.00716.48
7.3.240.0060.01416.59
7.3.230.0110.01116.56
7.3.210.0100.00716.61
7.3.200.0130.00319.39
7.3.190.0070.01516.30
7.3.180.0120.00316.33
7.3.170.0180.00016.57
7.3.160.0080.00816.52
7.3.120.0030.01414.90
7.3.110.0100.00715.01
7.3.100.0030.00914.74
7.3.90.0030.01014.92
7.3.80.0030.00814.72
7.3.70.0090.00614.85
7.3.60.0070.01014.86
7.3.50.0120.00315.01
7.3.40.0060.00614.71
7.3.30.0030.01014.66
7.3.20.0030.00616.64
7.3.10.0040.00716.33
7.3.00.0030.01016.51
7.2.330.0140.01716.60
7.2.320.0100.00816.51
7.2.310.0130.01316.74
7.2.300.0150.00816.67
7.2.290.0170.00016.64
7.2.250.0110.00415.22
7.2.240.0070.01015.22
7.2.230.0150.00015.03
7.2.220.0000.01114.64
7.2.210.0030.01414.89
7.2.200.0000.00914.68
7.2.190.0120.00015.06
7.2.180.0070.00414.89
7.2.170.0030.01314.91
7.2.130.0080.00416.61
7.2.120.0070.01016.52
7.2.110.0030.00916.51
7.2.100.0060.00616.30
7.2.90.0060.00616.71
7.2.80.0030.00916.95
7.2.70.0030.01016.62
7.2.60.0060.00616.96
7.2.50.0030.00716.42
7.2.40.0060.00616.51
7.2.30.0040.00916.44
7.2.20.0100.00316.93
7.2.10.0090.00316.72
7.2.00.0040.01118.19
7.1.330.0120.00315.77
7.1.320.0040.01115.62
7.1.310.0080.00815.82
7.1.300.0040.01215.79
7.1.290.0030.00715.71
7.1.280.0070.00415.54
7.1.270.0040.00815.50
7.1.260.0060.00615.68
7.1.250.0070.00315.38
7.1.100.0070.00718.07
7.1.70.0000.00717.03
7.1.60.0090.01619.46
7.1.50.0070.01316.70
7.1.00.0070.08722.34
7.0.200.0040.00814.66
7.0.140.0000.07721.92
7.0.60.0030.09020.08
7.0.50.0030.04017.87
7.0.40.0100.05320.20
7.0.30.0270.04720.22
7.0.20.0200.08320.30
7.0.10.0100.08720.05
7.0.00.0030.08720.34
5.6.280.0070.07020.79
5.6.210.0100.06320.48
5.6.200.0100.08018.30
5.6.190.0100.08720.54
5.6.180.3370.03720.50
5.6.170.0330.06720.48
5.6.160.0170.07020.56
5.6.150.0000.09318.27
5.6.140.0130.03318.12
5.6.130.0000.08018.15
5.6.120.0130.03320.97
5.6.110.0100.07020.99
5.6.100.0070.08721.01
5.6.90.0130.07020.97
5.6.80.0070.08020.49
5.6.70.5030.03020.51
5.5.350.0070.03320.53
5.5.340.0070.05317.97
5.5.330.0000.04320.21
5.5.320.0300.07320.27
5.5.310.0270.08020.34
5.5.300.0030.07717.94
5.5.290.0030.05317.94
5.5.280.0170.05320.85
5.5.270.0170.05720.75
5.5.260.0070.04020.64
5.5.250.0000.05720.71
5.5.240.0100.07320.35
5.4.450.0600.06319.48
5.4.440.0970.06719.55
5.4.430.0830.05719.16
5.4.420.0930.05019.60
5.4.410.0800.06319.19
5.4.400.0230.04718.77
5.4.390.0200.05318.59
5.4.380.0200.05018.81
5.4.370.0130.05318.85
5.4.360.0130.05318.52
5.4.350.0200.05318.86
5.4.340.0200.05018.76
5.4.320.0230.05018.73
5.4.310.0170.06018.75
5.4.300.0230.05018.63
5.4.290.0130.05718.52
5.4.280.0230.04718.52
5.4.270.0200.05018.79
5.4.260.0100.06018.75
5.4.250.0100.06718.52
5.4.240.0170.05718.58
5.4.230.0300.06318.73
5.4.220.0200.06018.69
5.4.210.0200.05318.62
5.4.200.0170.05316.55
5.4.190.0230.06318.51
5.4.180.0200.07318.45
5.4.170.0200.06018.73
5.4.160.0230.06718.48
5.4.150.0230.05018.71
5.4.140.0130.05316.27
5.4.130.0230.04716.18
5.4.120.0200.06316.20
5.4.110.0070.05716.27
5.4.100.0130.05716.29
5.4.90.0170.05716.32
5.4.80.0100.05716.30
5.4.70.0230.04316.29
5.4.60.0200.05016.18
5.4.50.0230.04016.27
5.4.40.0100.06016.39
5.4.30.0130.05016.24
5.4.20.0130.05316.14
5.4.10.0170.05016.23
5.4.00.0100.05315.73
5.3.290.0270.06014.69
5.3.280.0130.05714.57
5.3.270.0130.05714.83
5.3.260.0200.05014.79
5.3.250.0130.05314.77
5.3.240.0100.05714.61
5.3.230.0130.05314.78
5.3.220.0270.05014.79
5.3.210.0170.05314.70
5.3.200.0230.04314.61
5.3.190.0170.05014.79
5.3.180.0100.05714.69
5.3.170.0200.04314.60
5.3.160.0170.05014.70
5.3.150.0100.05714.57
5.3.140.0170.05014.69
5.3.130.0170.06014.71
5.3.120.0100.06014.67
5.3.110.0170.06314.58
5.3.100.0230.05314.21
5.3.90.0130.06014.07
5.3.80.0170.05714.24
5.3.70.0270.04714.12
5.3.60.0130.05714.01
5.3.50.0130.05314.05
5.3.40.0200.06714.11
5.3.30.0130.07314.02
5.3.20.0400.04713.80
5.3.10.0170.04713.75
5.3.00.0270.04313.75
5.2.170.0030.05311.27
5.2.160.0170.03711.25
5.2.150.0070.04711.19
5.2.140.0200.03311.37
5.2.130.0170.03311.20
5.2.120.0200.03011.17
5.2.110.0170.03311.32
5.2.100.0170.03711.33
5.2.90.0130.04311.14
5.2.80.0270.02711.21
5.2.70.0130.04711.20
5.2.60.0000.05311.17
5.2.50.0130.04011.00
5.2.40.0070.04311.11
5.2.30.0130.05711.12
5.2.20.0200.04710.96
5.2.10.0170.04011.04
5.2.00.0130.04010.71
5.1.60.0200.02310.03
5.1.50.0100.03710.20
5.1.40.0100.0379.96
5.1.30.0130.03710.43
5.1.20.0130.03710.54
5.1.10.0130.03710.25
5.1.00.0100.03710.20
5.0.50.0100.0308.68
5.0.40.0070.0308.53
5.0.30.0030.0478.41
5.0.20.0030.0338.38
5.0.10.0070.0308.30
5.0.00.0070.0478.18
4.4.90.0100.0205.98
4.4.80.0030.0235.90
4.4.70.0030.0275.98
4.4.60.0100.0205.86
4.4.50.0030.0236.00
4.4.40.0100.0305.92
4.4.30.0070.0275.93
4.4.20.0100.0176.03
4.4.10.0030.0235.94
4.4.00.0030.0375.93
4.3.110.0000.0275.81
4.3.100.0070.0205.86
4.3.90.0100.0175.88
4.3.80.0100.0305.84
4.3.70.0070.0205.79
4.3.60.0030.0235.79
4.3.50.0030.0235.79
4.3.40.0070.0335.77
4.3.30.0030.0234.56
4.3.20.0130.0204.53
4.3.10.0030.0234.53
4.3.00.0100.0276.96

preferences:
50.79 ms | 401 KiB | 5 Q