3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do_stuff() { $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.0090.01516.63
8.3.50.0110.01021.89
8.3.40.0120.00918.66
8.3.30.0000.01418.96
8.3.20.0040.00420.15
8.3.10.0000.00721.77
8.3.00.0050.00319.38
8.2.180.0110.01118.08
8.2.170.0100.00722.96
8.2.160.0110.00322.27
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.76
8.2.110.0060.00319.38
8.2.100.0120.00017.88
8.2.90.0070.00019.30
8.2.80.0030.00517.97
8.2.70.0080.00417.36
8.2.60.0080.00018.04
8.2.50.0040.00418.07
8.2.40.0040.00419.84
8.2.30.0040.00417.93
8.2.20.0070.00017.67
8.2.10.0040.00418.14
8.2.00.0000.00717.61
8.1.280.0110.01425.92
8.1.270.0040.00418.86
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00319.34
8.1.230.0110.00319.13
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0080.00018.10
8.1.170.0030.00520.07
8.1.160.0040.00421.94
8.1.150.0040.00418.86
8.1.140.0000.00717.49
8.1.130.0070.00017.86
8.1.120.0050.00217.47
8.1.110.0070.00017.46
8.1.100.0040.00417.46
8.1.90.0040.00417.42
8.1.80.0040.00317.41
8.1.70.0000.00817.43
8.1.60.0080.00017.50
8.1.50.0030.00617.41
8.1.40.0000.00717.57
8.1.30.0040.00417.67
8.1.20.0000.00817.50
8.1.10.0040.00417.39
8.1.00.0070.00017.30
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00717.23
8.0.260.0000.00617.19
8.0.250.0030.00316.92
8.0.240.0000.00616.95
8.0.230.0070.00016.98
8.0.220.0000.00716.75
8.0.210.0000.00716.95
8.0.200.0030.00316.90
8.0.190.0040.00416.87
8.0.180.0040.00416.80
8.0.170.0000.00716.91
8.0.160.0040.00416.89
8.0.150.0050.00316.78
8.0.140.0030.00316.83
8.0.130.0030.00313.27
8.0.120.0000.00816.84
8.0.110.0000.00816.84
8.0.100.0050.00216.89
8.0.90.0030.00316.95
8.0.80.0060.01316.78
8.0.70.0050.00216.86
8.0.60.0040.00416.88
8.0.50.0000.00716.68
8.0.30.0130.00617.16
8.0.20.0160.00817.43
8.0.10.0000.00716.98
8.0.00.0140.00616.76
7.4.330.0000.00515.03
7.4.320.0040.00416.55
7.4.300.0000.00616.56
7.4.290.0030.00316.60
7.4.280.0000.00716.58
7.4.270.0030.00316.52
7.4.260.0030.00316.57
7.4.250.0000.00816.53
7.4.240.0040.00416.62
7.4.230.0030.00316.68
7.4.220.0030.01516.43
7.4.210.0100.00616.65
7.4.200.0000.00716.50
7.4.160.0040.01116.51
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0100.00716.38
7.4.120.0070.01116.45
7.4.110.0150.01016.61
7.4.100.0120.01216.48
7.4.90.0120.00916.39
7.4.80.0100.00919.39
7.4.70.0110.00616.65
7.4.60.0030.01216.45
7.4.50.0060.00016.54
7.4.40.0090.00816.24
7.4.30.0090.00916.61
7.4.00.0080.00415.07
7.3.330.0000.00513.37
7.3.320.0090.00413.26
7.3.310.0060.00016.16
7.3.300.0000.00616.31
7.3.290.0030.00516.24
7.3.280.0060.01216.24
7.3.270.0100.01017.40
7.3.260.0100.00716.50
7.3.250.0110.00616.58
7.3.240.0100.01316.28
7.3.230.0080.00816.39
7.3.210.0040.01316.63
7.3.200.0170.00619.39
7.3.190.0170.00016.45
7.3.180.0110.00416.50
7.3.170.0060.01416.38
7.3.160.0060.00916.47
7.3.10.0060.00616.76
7.3.00.0070.00716.84
7.2.330.0110.00816.44
7.2.320.0120.01316.58
7.2.310.0070.01016.67
7.2.300.0090.01216.65
7.2.290.0150.00416.63
7.2.130.0090.00616.89
7.2.120.0040.01116.89
7.2.110.0030.01016.72
7.2.100.0060.00316.96
7.2.90.0070.00716.84
7.2.80.0120.00316.84
7.2.70.0090.00316.95
7.2.60.0050.01216.71
7.2.50.0030.01616.84
7.2.40.0060.00616.92
7.2.30.0070.00716.96
7.2.20.0000.01217.04
7.2.10.0080.00816.80
7.2.00.0060.00717.96
7.1.250.0040.00415.86
7.1.200.0000.01415.98
7.1.100.0070.01017.77
7.1.70.0000.01117.10
7.1.60.0110.01419.46
7.1.50.0040.01416.79
7.1.00.0070.07322.43
7.0.200.1090.00014.78
7.0.140.0030.07022.08
7.0.60.0030.04719.95
7.0.50.0000.04717.88
7.0.40.0030.09020.20
7.0.30.0270.05720.23
7.0.20.0330.03720.10
7.0.10.0000.08720.24
7.0.00.0100.05720.22
5.6.280.0000.07721.08
5.6.210.0100.07720.63
5.6.200.0170.08018.29
5.6.190.0070.04320.63
5.6.180.0500.07720.52
5.6.170.0270.07320.47
5.6.160.0100.07720.44
5.6.150.0100.04018.14
5.6.140.0030.07318.27
5.6.130.0130.04718.14
5.6.120.0070.04321.04
5.6.110.0000.04321.02
5.6.100.0100.08321.14
5.6.90.0100.06720.98
5.6.80.0130.07720.54
5.5.350.0200.04020.31
5.5.340.0100.08317.99
5.5.330.0030.09020.26
5.5.320.0170.04320.32
5.5.310.0330.07020.34
5.5.300.0070.08317.97
5.5.290.0130.05318.00
5.5.280.0100.06720.65
5.5.270.0070.05020.63
5.5.260.0130.07320.65
5.5.250.0070.03720.62
5.5.240.0100.07720.28
5.4.450.0330.04719.56
5.4.440.0800.05019.61
5.4.430.0800.04719.58
5.4.420.0830.05319.60
5.4.410.0800.05719.32
5.4.400.0200.05318.75
5.4.390.0170.05318.80
5.4.380.0300.06318.79
5.4.370.0230.04318.61
5.4.360.0130.05718.81
5.4.350.0230.05318.84
5.4.340.0330.04318.47
5.4.320.0270.06018.69
5.4.310.0170.05318.61
5.4.300.0230.05318.82
5.4.290.0200.05318.76
5.4.280.0230.08018.77
5.4.270.0300.04718.54
5.4.260.0270.05018.68
5.4.250.0100.06718.78
5.4.240.0270.04718.50
5.4.230.0170.06018.45
5.4.220.0330.05018.81
5.4.210.0170.05718.73
5.4.200.0200.05016.62
5.4.190.0230.05018.60
5.4.180.0300.05018.82
5.4.170.0170.05718.77
5.4.160.0200.04718.76
5.4.150.0230.05018.73
5.4.140.0130.05716.19
5.4.130.0230.05716.33
5.4.120.0200.04716.27
5.4.110.0230.05016.26
5.4.100.0200.05016.32
5.4.90.0130.05716.28
5.4.80.0170.05016.28
5.4.70.0170.05016.23
5.4.60.0230.04316.23
5.4.50.0070.06016.29
5.4.40.0100.05716.19
5.4.30.0030.06316.17
5.4.20.0130.05716.17
5.4.10.0130.05316.39
5.4.00.0200.04315.77
5.3.290.0370.06014.71
5.3.280.0230.04714.77
5.3.270.0200.05314.64
5.3.260.0270.06714.62
5.3.250.0200.06314.65
5.3.240.0200.05014.74
5.3.230.0230.04714.84
5.3.220.0230.04714.67
5.3.210.0270.04714.77
5.3.200.0200.05014.67
5.3.190.0130.05714.68
5.3.180.0170.05014.62
5.3.170.0200.07014.58
5.3.160.0170.05314.60
5.3.150.0100.07314.70
5.3.140.0200.07014.69
5.3.130.0130.08014.67
5.3.120.0100.06314.60
5.3.110.0170.05714.68
5.3.100.0170.06014.16
5.3.90.0330.05014.07
5.3.80.0100.06014.23
5.3.70.0170.05314.13
5.3.60.0170.05314.13
5.3.50.0100.05714.07
5.3.40.0230.04713.95
5.3.30.0270.04014.04
5.3.20.0130.07013.69
5.3.10.0230.04313.70
5.3.00.0170.06013.62
5.2.170.0170.04311.17
5.2.160.0270.04311.27
5.2.150.0170.05711.18
5.2.140.0030.05311.24
5.2.130.0130.04311.08
5.2.120.0170.03711.13
5.2.110.0130.04011.12
5.2.100.0170.03711.22
5.2.90.0130.04011.18
5.2.80.0070.04711.13
5.2.70.0070.04711.22
5.2.60.0170.04311.10
5.2.50.0170.04711.03
5.2.40.0130.04311.04
5.2.30.0170.03711.02
5.2.20.0170.03311.05
5.2.10.0030.05311.04
5.2.00.0100.04310.78
5.1.60.0070.03710.02
5.1.50.0170.03010.02
5.1.40.0130.03010.18
5.1.30.0100.03710.43
5.1.20.0070.04010.43
5.1.10.0130.03310.26
5.1.00.0130.03710.14
5.0.50.0070.0308.58
5.0.40.0130.0238.41
5.0.30.0070.0438.24
5.0.20.0100.0278.33
5.0.10.0000.0338.18
5.0.00.0100.0378.29
4.4.90.0070.0235.88
4.4.80.0070.0235.90
4.4.70.0030.0235.86
4.4.60.0070.0205.92
4.4.50.0030.0235.91
4.4.40.0130.0275.91
4.4.30.0130.0175.87
4.4.20.0130.0176.07
4.4.10.0030.0235.94
4.4.00.0100.0305.93
4.3.110.0070.0235.82
4.3.100.0100.0175.81
4.3.90.0030.0305.83
4.3.80.0100.0335.88
4.3.70.0100.0235.81
4.3.60.0070.0205.82
4.3.50.0100.0205.82
4.3.40.0070.0335.75
4.3.30.0030.0234.63
4.3.20.0000.0274.59
4.3.10.0070.0274.53
4.3.00.0130.0237.20

preferences:
54.6 ms | 401 KiB | 5 Q