3v4l.org

run code in 300+ PHP versions simultaneously
<?php function group($cond, $arr) { if (!$arr) return []; $e = array_shift($arr); $g = [$e]; while($cond($e, reset($arr))) { $g[] = array_shift($arr); } return array_merge([$g], group($cond, $arr)); } function it($m,$p){echo ($p?'OK':'NO')." It $m\n";};

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.40.0140.00318.40
8.3.30.0040.01118.96
8.3.20.0000.00820.22
8.3.10.0040.00423.70
8.3.00.0080.00019.13
8.2.170.0070.00722.96
8.2.160.0120.00320.36
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.25
8.2.110.0060.00322.20
8.2.100.0060.00717.50
8.2.90.0040.00419.15
8.2.80.0030.00517.97
8.2.70.0040.00417.48
8.2.60.0080.00417.75
8.2.50.0040.00418.07
8.2.40.0060.00319.51
8.2.30.0040.00417.93
8.2.20.0000.00817.44
8.2.10.0030.00517.80
8.2.00.0000.00717.61
8.1.270.0080.00022.06
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.66
8.1.230.0110.00017.76
8.1.220.0040.00417.74
8.1.210.0030.00718.77
8.1.200.0050.00516.88
8.1.190.0080.00017.11
8.1.180.0030.00618.10
8.1.170.0000.01118.43
8.1.160.0000.00722.04
8.1.150.0040.00418.76
8.1.140.0040.00417.33
8.1.130.0000.00717.69
8.1.120.0070.00017.34
8.1.110.0040.00417.21
8.1.100.0040.00417.32
8.1.90.0040.00417.30
8.1.80.0030.00317.29
8.1.70.0070.00017.29
8.1.60.0000.01017.45
8.1.50.0040.00417.38
8.1.40.0080.00017.38
8.1.30.0080.00017.52
8.1.20.0000.00717.49
8.1.10.0070.00017.41
8.1.00.0070.00017.28
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.31
8.0.270.0050.00317.13
8.0.260.0040.00417.04
8.0.250.0000.00616.79
8.0.240.0000.00716.68
8.0.230.0030.00316.79
8.0.220.0030.00316.73
8.0.210.0030.00316.80
8.0.200.0070.00016.84
8.0.190.0080.00016.84
8.0.180.0040.00416.79
8.0.170.0000.00716.80
8.0.160.0030.00316.73
8.0.150.0000.00716.64
8.0.140.0050.00316.73
8.0.130.0060.00013.19
8.0.120.0000.00916.74
8.0.110.0030.00316.72
8.0.100.0030.00316.65
8.0.90.0020.00516.67
8.0.80.0090.00616.77
8.0.70.0000.00816.87
8.0.60.0030.00316.72
8.0.50.0070.00016.66
8.0.30.0080.01116.86
8.0.20.0090.01117.40
8.0.10.0000.00716.79
8.0.00.0030.01416.60
7.4.330.0050.00015.02
7.4.320.0050.00516.48
7.4.300.0000.00716.32
7.4.290.0070.00016.50
7.4.280.0030.00516.34
7.4.270.0040.00416.38
7.4.260.0030.00316.37
7.4.250.0030.00516.47
7.4.240.0040.00316.35
7.4.230.0040.00416.44
7.4.220.0030.01416.49
7.4.210.0090.00616.58
7.4.200.0070.00016.51
7.4.160.0060.00916.16
7.4.150.0150.00917.40
7.4.140.0120.00817.86
7.4.130.0050.01216.38
7.4.120.0080.01116.34
7.4.110.0100.01616.37
7.4.100.0090.00616.47
7.4.90.0090.00916.41
7.4.80.0130.01119.39
7.4.70.0000.01716.44
7.4.60.0100.00616.18
7.4.50.0000.00816.32
7.4.40.0090.00916.25
7.4.30.0130.00616.33
7.4.00.0070.00714.94
7.3.330.0000.00513.15
7.3.320.0040.00413.11
7.3.310.0000.00716.07
7.3.300.0040.00416.04
7.3.290.0090.00716.14
7.3.280.0060.00816.15
7.3.270.0140.00417.40
7.3.260.0130.00916.19
7.3.250.0060.01116.17
7.3.240.0090.00816.18
7.3.230.0060.01216.39
7.3.210.0100.00616.47
7.3.200.0120.00919.39
7.3.190.0070.01416.43
7.3.180.0120.00416.34
7.3.170.0100.00916.27
7.3.160.0030.01416.06
7.3.10.0140.00716.34
7.3.00.0140.00715.69
7.2.330.0100.00716.37
7.2.320.0120.00916.52
7.2.310.0090.01316.53
7.2.300.0070.01016.50
7.2.290.0100.01416.46
7.2.130.0140.01116.05
7.2.120.0180.00416.31
7.2.110.0160.00816.26
7.2.100.0160.00316.33
7.2.90.0080.01516.00
7.2.80.0120.00316.52
7.2.70.0110.00416.15
7.2.60.0070.01016.08
7.2.50.0080.01516.29
7.2.40.0070.01116.52
7.2.30.0190.00615.74
7.2.20.0190.00616.12
7.2.10.0130.01316.22
7.2.00.0080.00717.67
7.1.250.0170.00715.23
7.1.100.0060.00917.48
7.1.70.0000.00816.92
7.1.60.0030.01719.11
7.1.50.0070.01816.82
7.1.00.0030.07722.54
7.0.200.0030.00316.73
7.0.140.0200.05722.18
7.0.60.0170.05720.02
7.0.50.0070.08017.73
7.0.40.0070.04020.20
7.0.30.0400.07720.25
7.0.20.0200.04320.08
7.0.10.0400.07320.09
7.0.00.0030.07020.19
5.6.280.0100.06320.83
5.6.210.0070.08320.54
5.6.200.0000.04718.20
5.6.190.0070.06320.47
5.6.180.0270.07020.30
5.6.170.0230.05320.52
5.6.160.0070.09020.43
5.6.150.0070.04018.21
5.6.140.0070.08718.19
5.6.130.0000.05318.11
5.6.120.0030.07020.99
5.6.110.0030.09321.05
5.6.100.0030.09020.89
5.6.90.0070.06721.14
5.6.80.0070.06720.41
5.6.70.0170.04020.52
5.5.350.0130.08320.45
5.5.340.0070.07018.05
5.5.330.0070.05720.43
5.5.320.0170.07320.41
5.5.310.0200.05020.34
5.5.300.0070.08017.93
5.5.290.0130.07717.97
5.5.280.0070.07720.66
5.5.270.0130.07720.64
5.5.260.0000.09320.90
5.5.250.0000.08720.69
5.5.240.0130.06020.19
5.4.450.0700.05019.30
5.4.440.0830.04319.57
5.4.430.0630.07319.29
5.4.420.0830.07719.60
5.4.410.0800.05719.48
5.4.400.0770.05019.02
5.4.390.0630.06019.11
5.4.380.0900.04319.26
5.4.370.0600.05319.02
5.4.360.0200.05718.80
5.4.350.0770.05718.84
5.4.340.0060.03612.02
5.4.320.0120.03312.51
5.4.310.0070.04112.50
5.4.300.0060.04312.51
5.4.290.0090.04612.50
5.4.280.0100.03712.40
5.4.270.0050.04312.40
5.4.260.0070.05112.41
5.4.250.0070.03912.40
5.4.240.0060.04012.41
5.4.230.0090.03812.40
5.4.220.0080.03512.39
5.4.210.0060.03712.39
5.4.200.0050.03912.39
5.4.190.0060.04012.39
5.4.180.0070.04312.39
5.4.170.0070.04212.40
5.4.160.0060.03812.40
5.4.150.0130.04012.39
5.4.140.0090.03712.07
5.4.130.0060.03812.06
5.4.120.0080.04112.02
5.4.110.0050.04112.02
5.4.100.0060.04012.02
5.4.90.0070.04012.02
5.4.80.0070.04012.02
5.4.70.0090.03412.01
5.4.60.0090.03912.02
5.4.50.0100.04612.01
5.4.40.0090.04012.00
5.4.30.0060.04012.00
5.4.20.0070.04212.00
5.4.10.0070.04312.00
5.4.00.0090.03611.48
5.3.290.0050.04212.80
5.3.280.0040.04212.71
5.3.270.0110.03612.72
5.3.260.0070.04712.72
5.3.250.0070.05312.72
5.3.240.0080.04112.72
5.3.230.0070.04912.71
5.3.220.0080.05112.68
5.3.210.0080.05312.68
5.3.200.0110.04412.68
5.3.190.0090.03712.68
5.3.180.0050.03812.68
5.3.170.0030.04512.67
5.3.160.0040.04012.68
5.3.150.0110.03412.68
5.3.140.0080.03412.66
5.3.130.0060.03912.66
5.3.120.0040.04112.66
5.3.110.0060.03912.66
5.3.100.0070.03712.13
5.3.90.0100.03312.11
5.3.80.0080.03812.09
5.3.70.0100.04312.09
5.3.60.0090.03712.08
5.3.50.0070.04012.02
5.3.40.0050.04312.02
5.3.30.0050.03611.98
5.3.20.0060.03911.77
5.3.10.0070.03911.73
5.3.00.0060.03711.72
5.2.170.0030.0339.21
5.2.160.0070.0269.22
5.2.150.0070.0329.22
5.2.140.0040.0439.21
5.2.130.0020.0329.17
5.2.120.0050.0279.17
5.2.110.0070.0279.18
5.2.100.0030.0309.18
5.2.90.0030.0319.18
5.2.80.0070.0369.17
5.2.70.0030.0319.17
5.2.60.0030.0319.13
5.2.50.0050.0299.09
5.2.40.0050.0289.07
5.2.30.0060.0299.05
5.2.20.0060.0309.04
5.2.10.0030.0308.95
5.2.00.0040.0298.81
5.1.60.0050.0238.09
5.1.50.0050.0248.08
5.1.40.0040.0248.07
5.1.30.0030.0308.42
5.1.20.0020.0298.44
5.1.10.0030.0278.16
5.1.00.0030.0268.16
5.0.50.0060.0176.64
5.0.40.0020.0206.50
5.0.30.0050.0306.31
5.0.20.0040.0186.28
5.0.10.0060.0186.26
5.0.00.0050.0296.25
4.4.90.0040.0154.78
4.4.80.0040.0204.75
4.4.70.0030.0194.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0174.84
4.4.10.0070.0154.85
4.4.00.0050.0244.75
4.3.110.0010.0184.67
4.3.100.0030.0154.66
4.3.90.0020.0164.63
4.3.80.0020.0274.58
4.3.70.0010.0164.63
4.3.60.0030.0154.63
4.3.50.0030.0154.63
4.3.40.0020.0254.53
4.3.30.0050.0133.30
4.3.20.0000.0183.27
4.3.10.0040.0133.24
4.3.00.0130.0336.88

preferences:
41.34 ms | 400 KiB | 5 Q