3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AnimalSounds { public function DogBark() { $bark = "woof, woof, "; $numberofBarks = 4; while ($numberOfBarks > 0 ) { echo $bark; $numberofBarks--; } } } AnimalSounds::DogBark();

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.01016.50
8.3.50.0130.00821.94
8.3.40.0110.00418.85
8.3.30.0030.01018.95
8.3.20.0060.00320.25
8.3.10.0040.00423.46
8.3.00.0040.00419.05
8.2.180.0040.01116.50
8.2.170.0070.00722.96
8.2.160.0040.01120.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0130.00720.72
8.2.110.0060.00320.99
8.2.100.0060.00617.91
8.2.90.0070.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0030.00617.68
8.2.50.0000.00818.07
8.2.40.0040.00419.82
8.2.30.0050.00318.24
8.2.20.0030.00517.65
8.2.10.0000.00717.97
8.2.00.0040.00417.54
8.1.280.0070.01425.92
8.1.270.0120.00323.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0110.00019.01
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.22
8.1.190.0050.00317.10
8.1.180.0030.00518.10
8.1.170.0030.00618.66
8.1.160.0070.00021.93
8.1.150.0070.00018.41
8.1.140.0000.00817.35
8.1.130.0000.00717.75
8.1.120.0000.00717.19
8.1.110.0080.00017.36
8.1.100.0030.00517.32
8.1.90.0040.00417.32
8.1.80.0030.00517.27
8.1.70.0000.00717.26
8.1.60.0030.00617.39
8.1.50.0030.00617.48
8.1.40.0080.00017.47
8.1.30.0040.00417.47
8.1.20.0040.00417.52
8.1.10.0070.00017.51
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0030.00318.42
8.0.270.0000.00717.19
8.0.260.0000.00717.23
8.0.250.0020.00516.88
8.0.240.0030.00316.93
8.0.230.0000.00717.01
8.0.220.0070.00016.86
8.0.210.0040.00416.89
8.0.200.0070.00016.98
8.0.190.0040.00416.96
8.0.180.0000.00716.80
8.0.170.0020.00516.95
8.0.160.0000.00716.93
8.0.150.0050.00316.75
8.0.140.0050.00316.86
8.0.130.0030.00313.25
8.0.120.0000.00716.92
8.0.110.0000.00716.77
8.0.100.0050.00316.87
8.0.90.0000.00816.68
8.0.80.0110.00616.94
8.0.70.0030.00516.73
8.0.60.0000.00716.84
8.0.50.0070.00016.75
8.0.30.0130.00517.05
8.0.20.0090.01117.40
8.0.10.0070.00017.00
8.0.00.0080.01316.73
7.4.330.0060.00015.00
7.4.320.0060.00016.41
7.4.300.0030.00316.61
7.4.290.0030.00316.50
7.4.280.0040.00416.49
7.4.270.0040.00416.50
7.4.260.0030.00616.35
7.4.250.0000.00716.57
7.4.240.0060.00116.57
7.4.230.0070.00016.39
7.4.220.0060.01216.53
7.4.210.0070.00716.63
7.4.200.0030.00316.64
7.4.190.0000.00716.55
7.4.160.0080.00816.34
7.4.150.0120.00817.40
7.4.140.0110.00717.86
7.4.130.0100.00716.46
7.4.120.0060.01116.54
7.4.110.0070.01016.46
7.4.100.0100.00716.54
7.4.90.0160.00316.66
7.4.80.0070.01419.39
7.4.70.0060.01116.66
7.4.60.0110.00716.46
7.4.50.0030.00616.66
7.4.40.0100.00716.56
7.4.30.0090.00616.46
7.4.00.0030.01315.12
7.3.330.0040.00213.23
7.3.320.0030.00313.15
7.3.310.0070.00016.29
7.3.300.0060.00016.41
7.3.290.0060.01116.32
7.3.280.0110.00516.30
7.3.270.0060.01017.40
7.3.260.0090.01316.37
7.3.250.0090.01116.33
7.3.240.0130.00916.51
7.3.230.0170.00016.39
7.3.210.0100.00716.37
7.3.200.0080.00819.39
7.3.190.0110.00716.23
7.3.180.0100.00616.22
7.3.170.0120.00416.40
7.3.160.0060.00916.51
7.3.120.0060.00914.73
7.3.10.0030.01016.41
7.3.00.0060.00616.77
7.2.330.0090.01216.66
7.2.320.0100.00716.33
7.2.310.0130.00316.68
7.2.300.0140.00816.33
7.2.290.0030.01316.63
7.2.130.0040.00716.87
7.2.120.0040.00816.91
7.2.110.0030.00716.83
7.2.100.0000.00816.83
7.2.90.0030.01016.97
7.2.80.0060.00616.84
7.2.70.0000.01516.93
7.2.60.0090.00616.82
7.2.50.0080.00316.88
7.2.40.0110.00316.88
7.2.30.0070.00616.82
7.2.20.0060.00916.74
7.2.10.0090.00616.92
7.2.00.0070.01018.17
7.1.250.0040.00415.74
7.1.200.0040.01115.63
7.1.100.0000.01117.75
7.1.70.0050.00517.08
7.1.60.0120.00619.70
7.1.50.0070.00316.71
7.1.00.0000.08022.27
7.0.200.0090.00016.87
7.0.140.0030.07322.09
7.0.60.0000.09020.09
7.0.50.0000.05017.97
7.0.40.0100.06719.96
7.0.30.0300.07020.07
7.0.20.0100.04720.08
7.0.10.0130.08320.23
7.0.00.0100.03720.18
5.6.280.0000.07721.00
5.6.210.0030.04320.48
5.6.200.0030.06018.25
5.6.190.0030.09320.67
5.6.180.3400.04320.70
5.6.170.0330.07320.54
5.6.160.0130.07320.44
5.6.150.0030.08318.25
5.6.140.0030.04718.14
5.6.130.0030.08018.12
5.6.120.0100.08021.02
5.6.110.0070.05020.98
5.6.100.0100.06021.04
5.6.90.0030.07021.00
5.6.80.0030.03720.41
5.6.70.3300.03720.37
5.5.350.0070.07720.41
5.5.340.0070.06017.96
5.5.330.0070.08320.28
5.5.320.0400.04720.32
5.5.310.0400.07020.51
5.5.300.0030.05717.92
5.5.290.0030.04717.99
5.5.280.0070.04320.77
5.5.270.0170.07720.67
5.5.260.0100.06720.76
5.5.250.0070.08020.66
5.5.240.0300.07020.13
5.4.450.0170.04019.65
5.4.440.0600.04719.30
5.4.430.0170.04719.37
5.4.420.0200.04719.46
5.4.410.0330.04019.41
5.4.400.0370.03751.95
5.4.390.0300.03748.09
5.4.380.0100.05718.69
5.4.370.0200.07018.78
5.4.360.0300.05318.72
5.4.350.0130.06318.48
5.4.340.0070.06018.63
5.4.320.0060.03812.50
5.4.310.0050.03812.50
5.4.300.0110.04112.50
5.4.290.0080.04812.50
5.4.280.0130.04212.40
5.4.270.0090.04512.39
5.4.260.0060.05012.39
5.4.250.0080.04112.40
5.4.240.0120.03512.40
5.4.230.0050.03912.39
5.4.220.0120.03612.39
5.4.210.0060.03712.38
5.4.200.0060.04912.38
5.4.190.0040.04112.39
5.4.180.0070.03912.38
5.4.170.0040.05412.39
5.4.160.0060.05112.39
5.4.150.0060.03712.39
5.4.140.0090.03512.07
5.4.130.0080.03512.06
5.4.120.0050.03812.01
5.4.110.0070.03612.01
5.4.100.0090.03412.01
5.4.90.0040.04212.01
5.4.80.0070.04112.01
5.4.70.0070.03912.01
5.4.60.0060.04112.00
5.4.50.0060.04012.01
5.4.40.0080.04612.00
5.4.30.0040.04212.00
5.4.20.0100.04611.99
5.4.10.0080.05112.00
5.4.00.0070.05211.48
5.3.290.0040.04112.80
5.3.280.0120.05112.71
5.3.270.0080.05912.72
5.3.260.0090.05712.72
5.3.250.0110.05312.72
5.3.240.0130.05412.72
5.3.230.0100.05912.71
5.3.220.0130.05512.68
5.3.210.0090.06012.68
5.3.200.0060.05712.68
5.3.190.0100.05512.68
5.3.180.0090.05212.67
5.3.170.0120.05912.67
5.3.160.0130.05712.68
5.3.150.0090.05712.68
5.3.140.0170.04712.66
5.3.130.0160.06412.66
5.3.120.0120.05912.65
5.3.110.0080.05612.66
5.3.100.0070.05612.12
5.3.90.0070.05512.09
5.3.80.0090.03712.09
5.3.70.0070.04312.09
5.3.60.0050.04112.07
5.3.50.0130.04312.02
5.3.40.0130.04312.02
5.3.30.0110.04211.98
5.3.20.0140.04411.76
5.3.10.0080.03811.72
5.3.00.0070.04111.71
5.2.170.0140.0359.21
5.2.160.0070.0419.21
5.2.150.0140.0349.22
5.2.140.0060.0439.21
5.2.130.0080.0419.17
5.2.120.0070.0409.17
5.2.110.0130.0359.17
5.2.100.0080.0429.18
5.2.90.0080.0459.18
5.2.80.0140.0389.17
5.2.70.0070.0479.17
5.2.60.0070.0469.13
5.2.50.0100.0409.10
5.2.40.0100.0369.07
5.2.30.0120.0369.04
5.2.20.0060.0449.03
5.2.10.0060.0438.93
5.2.00.0100.0378.80
5.1.60.0060.0348.08
5.1.50.0030.0368.08
5.1.40.0090.0328.06
5.1.30.0050.0378.41
5.1.20.0070.0368.43
5.1.10.0080.0328.16
5.1.00.0100.0338.16
5.0.50.0130.0436.64
5.0.40.0170.0596.50
5.0.30.0080.0496.31
5.0.20.0030.0216.27
5.0.10.0040.0286.25
5.0.00.0080.0416.24
4.4.90.0030.0254.77
4.4.80.0040.0244.75
4.4.70.0020.0254.75
4.4.60.0040.0234.76
4.4.50.0100.0234.77
4.4.40.0070.0344.71
4.4.30.0040.0224.76
4.4.20.0050.0244.84
4.4.10.0030.0244.84
4.4.00.0040.0354.76
4.3.110.0070.0194.67
4.3.100.0060.0214.67
4.3.90.0060.0194.63
4.3.80.0040.0334.58
4.3.70.0020.0234.63
4.3.60.0030.0234.63
4.3.50.0030.0244.63
4.3.40.0050.0324.54
4.3.30.0030.0223.30
4.3.20.0030.0223.28
4.3.10.0050.0203.24
4.3.00.0070.01346.74

preferences:
60.27 ms | 401 KiB | 5 Q