3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($x,$y) { echo "$x,$y"; } $funs = array(); for ($i=0; $i<10; $i++) { $funs[] = function($j) { f($i,$j); }; } for ($i=0; $i<10; $i++) { $g = $funs[$i]; $g(1); }

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.0080.01118.56
8.3.50.0100.00921.08
8.3.40.0150.00618.91
8.3.30.0070.00719.25
8.3.20.0000.00820.34
8.3.10.0080.00021.92
8.3.00.0000.00822.36
8.2.180.0150.00616.50
8.2.170.0100.00322.96
8.2.160.0090.00620.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01126.16
8.2.120.0070.00317.93
8.2.110.0030.00622.26
8.2.100.0110.00019.26
8.2.90.0060.00319.20
8.2.80.0000.00719.21
8.2.70.0050.00317.88
8.2.60.0000.00918.05
8.2.50.0070.00318.07
8.2.40.0040.00418.16
8.2.30.0050.00318.21
8.2.20.0030.00617.77
8.2.10.0080.00017.82
8.2.00.0050.00217.69
8.1.280.0110.00425.92
8.1.270.0040.00420.33
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0030.00623.91
8.1.230.0090.00319.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0080.00017.51
8.1.180.0030.00520.20
8.1.170.0000.00818.58
8.1.160.0000.00722.13
8.1.150.0040.00418.65
8.1.140.0000.00717.46
8.1.130.0030.00317.88
8.1.120.0080.00017.38
8.1.110.0000.00717.35
8.1.100.0040.00417.49
8.1.90.0000.00717.54
8.1.80.0070.00017.43
8.1.70.0000.00717.37
8.1.60.0060.00317.59
8.1.50.0040.00417.48
8.1.40.0040.00417.53
8.1.30.0030.00517.55
8.1.20.0040.00417.63
8.1.10.0070.00017.65
8.1.00.0060.00317.51
8.0.300.0030.00318.77
8.0.290.0040.00417.18
8.0.280.0030.00318.35
8.0.270.0030.00317.25
8.0.260.0000.00716.88
8.0.250.0000.00716.98
8.0.240.0000.00816.90
8.0.230.0040.00416.88
8.0.220.0040.00416.92
8.0.210.0030.00316.98
8.0.200.0000.00617.05
8.0.190.0000.00717.06
8.0.180.0070.00016.94
8.0.170.0030.00616.99
8.0.160.0040.00417.01
8.0.150.0030.00516.95
8.0.140.0070.00016.88
8.0.130.0000.00613.38
8.0.120.0050.00316.88
8.0.110.0030.00516.88
8.0.100.0030.00516.97
8.0.90.0000.00716.85
8.0.80.0060.00916.93
8.0.70.0050.00216.82
8.0.60.0050.00316.94
8.0.50.0030.00317.00
8.0.30.0080.01117.12
8.0.20.0150.00717.40
8.0.10.0030.00517.13
8.0.00.0080.01216.75
7.4.330.0030.00315.00
7.4.320.0030.00316.58
7.4.300.0030.00316.42
7.4.290.0030.00616.51
7.4.280.0000.00716.43
7.4.270.0030.00316.60
7.4.260.0040.00416.56
7.4.250.0000.00716.61
7.4.240.0040.00316.51
7.4.230.0000.00716.71
7.4.220.0040.01416.53
7.4.210.0060.00916.47
7.4.200.0070.00016.41
7.4.190.0070.00016.40
7.4.160.0080.00816.47
7.4.150.0040.01217.40
7.4.140.0070.01217.86
7.4.130.0120.00816.56
7.4.120.0070.01216.59
7.4.110.0150.00316.73
7.4.100.0110.00716.63
7.4.90.0070.01016.46
7.4.80.0070.01419.39
7.4.70.0130.00616.58
7.4.60.0070.01416.66
7.4.50.0050.00316.56
7.4.40.0030.00922.77
7.4.30.0080.00816.37
7.4.00.0070.01015.14
7.3.330.0050.00013.29
7.3.320.0000.00513.35
7.3.310.0040.00416.44
7.3.300.0040.00416.28
7.3.290.0030.01016.45
7.3.280.0140.00316.42
7.3.270.0090.00917.40
7.3.260.0100.00716.66
7.3.250.0060.01116.54
7.3.240.0000.01716.50
7.3.230.0100.00716.54
7.3.210.0160.00016.54
7.3.200.0130.01119.39
7.3.190.0120.01016.64
7.3.180.0100.00716.63
7.3.170.0060.01216.43
7.3.160.0110.00616.45
7.3.120.0100.00715.18
7.2.330.0090.00916.64
7.2.320.0070.01416.53
7.2.310.0070.01016.64
7.2.300.0100.01016.56
7.2.290.0060.01216.88
7.2.60.0060.00917.10
7.2.00.0080.00319.64
7.1.200.0090.00315.79
7.1.100.0030.01318.02
7.1.70.0000.00817.05
7.1.60.0040.01819.82
7.1.50.0140.01116.93
7.1.00.0070.07022.57
7.0.200.0000.00816.58
7.0.140.0070.07021.92
7.0.60.0030.04019.92
7.0.50.0030.08317.89
7.0.40.0030.09020.18
7.0.30.0270.08720.19
7.0.20.0300.07320.12
7.0.10.0330.07720.16
7.0.00.0000.04720.30
5.6.280.0030.07320.79
5.6.210.0030.07720.69
5.6.200.0030.05018.17
5.6.190.0030.07020.51
5.6.180.3230.04020.61
5.6.170.0470.07020.55
5.6.160.0100.05320.57
5.6.150.0070.07318.28
5.6.140.0070.07018.17
5.6.130.0130.07318.27
5.6.120.0130.08021.15
5.6.110.0070.08321.12
5.6.100.0130.07721.14
5.6.90.0130.08720.96
5.6.80.0200.07320.54
5.6.70.0030.05020.53
5.5.350.0130.08320.32
5.5.340.0030.04017.97
5.5.330.0030.09020.37
5.5.320.0200.04320.42
5.5.310.0300.07320.34
5.5.300.0000.04318.01
5.5.290.0030.06017.95
5.5.280.0100.08020.87
5.5.270.0100.06020.67
5.5.260.0100.05320.68
5.5.250.0130.07320.70
5.5.240.0100.08020.19
5.4.450.0170.04719.55
5.4.440.0230.04319.49
5.4.430.0130.07019.17
5.4.420.0200.07719.53
5.4.410.0270.04719.44
5.4.400.0300.06319.31
5.4.390.0130.04019.19
5.4.380.0200.05319.14
5.4.370.0170.04018.99
5.4.360.0170.03719.12
5.4.350.0170.08019.09
5.4.340.0230.04318.98
5.4.320.0200.06719.24
5.4.310.0270.07019.09
5.4.300.0170.05319.16
5.4.290.0330.07019.30
5.4.280.0170.06019.23
5.4.270.0270.07719.19
5.4.260.0230.07019.09
5.4.250.0270.04718.86
5.4.240.0270.07019.19
5.4.230.0230.03718.83
5.4.220.0200.04319.20
5.4.210.0230.06019.01
5.4.200.0170.04719.23
5.4.190.0300.05719.08
5.4.180.0200.06019.23
5.4.170.0330.03718.83
5.4.160.0200.03318.85
5.4.150.0170.05018.84
5.4.140.0170.03716.46
5.4.130.0130.04716.34
5.4.120.0170.05716.39
5.4.110.0200.04716.29
5.4.100.0300.05016.56
5.4.90.0230.04316.28
5.4.80.0270.04016.44
5.4.70.0200.03716.38
5.4.60.0230.06316.16
5.4.50.0200.04716.53
5.4.40.0230.06016.34
5.4.30.0300.06716.50
5.4.20.0200.03716.42
5.4.10.0200.04316.48
5.4.00.0200.07016.11
5.3.290.0270.04714.72
5.3.280.0270.06014.71
5.3.270.0570.01314.58
5.3.260.0270.07014.59
5.3.250.0400.04714.62
5.3.240.0200.05714.73
5.3.230.0270.03314.61
5.3.220.0300.05714.68
5.3.210.0200.07314.66
5.3.200.0230.03714.66
5.3.190.0270.07014.69
5.3.180.0330.05714.49
5.3.170.0170.07714.58
5.3.160.0200.05014.70
5.3.150.0170.06714.58
5.3.140.0230.07014.73
5.3.130.0270.06714.67
5.3.120.0270.04014.71
5.3.110.0200.07314.63
5.3.100.0270.06714.18
5.3.90.0330.03313.93
5.3.80.0170.04313.93
5.3.70.0230.07313.94
5.3.60.0300.04013.91
5.3.50.0300.06714.05
5.3.40.0200.04313.96
5.3.30.0230.07013.82
5.3.20.0270.06713.62
5.3.10.0270.03313.74
5.3.00.0200.05713.62
5.2.170.0200.05312.29
5.2.160.0200.06012.29
5.2.150.0130.03012.29
5.2.140.0170.06312.29
5.2.130.0100.04312.29
5.2.120.0200.04312.29
5.2.110.0230.02712.29
5.2.100.0130.04712.29
5.2.90.0130.03312.29
5.2.80.0100.03312.29
5.2.70.0170.03012.29
5.2.60.0170.02712.29
5.2.50.0170.02712.29
5.2.40.0070.03312.29
5.2.30.0100.06312.29
5.2.20.0130.02712.29
5.2.10.0130.05712.29
5.2.00.0170.02712.29
5.1.60.0230.04312.29
5.1.50.0130.05312.29
5.1.40.0170.05312.29
5.1.30.0200.04712.29
5.1.20.0100.03712.29
5.1.10.0170.05012.29
5.1.00.0200.04712.29
5.0.50.0130.04312.29
5.0.40.0070.03712.29
5.0.30.0070.05012.29
5.0.20.0030.03312.29
5.0.10.0100.01712.29
5.0.00.0070.03312.29
4.4.90.0130.02712.29
4.4.80.0030.01712.29
4.4.70.0100.02012.29
4.4.60.0100.02012.29
4.4.50.0100.03312.29
4.4.40.0100.05012.29
4.4.30.0070.02012.29
4.4.20.0070.03712.29
4.4.10.0030.01712.29
4.4.00.0100.04012.29
4.3.110.0030.03012.29
4.3.100.0070.03312.29
4.3.90.0100.03012.29
4.3.80.0070.04712.29
4.3.70.0070.02012.29
4.3.60.0100.02312.29
4.3.50.0070.03312.29
4.3.40.0100.03012.29
4.3.30.0030.02012.29
4.3.20.0000.03712.29
4.3.10.0030.03012.29
4.3.00.0030.02712.29

preferences:
51.87 ms | 401 KiB | 5 Q