3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doStuff() { echo 'start-'; $last = 0; $current = 1; yield 1; while ($current < 1000000) { echo 'loop-'; $current = $last + $current; $last = $current - $last; echo 'before-'; yield $current; echo 'after-'; } } foreach(doStuff() as $num) $num; ?>

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.00918.30
8.3.50.0050.01122.74
8.3.40.0040.01118.56
8.3.30.0070.00718.92
8.3.20.0040.00420.12
8.3.10.0040.00423.67
8.3.00.0080.00019.38
8.2.180.0150.00016.32
8.2.170.0140.00322.96
8.2.160.0030.01720.30
8.2.150.0090.00924.18
8.2.140.0000.00824.66
8.2.130.0040.01126.16
8.2.120.0000.00820.94
8.2.110.0000.00822.18
8.2.100.0090.00317.72
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00419.89
8.2.30.0080.00019.82
8.2.20.0000.00817.80
8.2.10.0000.00718.01
8.2.00.0040.00417.66
8.1.280.0070.01025.92
8.1.270.0030.00522.05
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00623.90
8.1.230.0110.00019.15
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0030.00621.94
8.1.150.0000.00718.81
8.1.140.0020.00517.46
8.1.130.0070.00017.88
8.1.120.0030.00317.36
8.1.110.0080.00017.49
8.1.100.0040.00317.47
8.1.90.0040.00417.43
8.1.80.0000.00717.36
8.1.70.0000.00717.43
8.1.60.0000.00817.61
8.1.50.0000.00817.57
8.1.40.0040.00417.42
8.1.30.0040.00417.58
8.1.20.0040.00417.57
8.1.10.0060.00317.52
8.1.00.0040.00417.44
8.0.300.0050.00318.77
8.0.290.0080.00016.75
8.0.280.0030.00318.52
8.0.270.0050.00317.28
8.0.260.0060.00017.26
8.0.250.0000.00716.99
8.0.240.0000.00716.86
8.0.230.0050.00316.98
8.0.220.0000.00716.88
8.0.210.0000.00716.79
8.0.200.0000.00616.95
8.0.190.0000.00716.93
8.0.180.0000.00816.98
8.0.170.0000.00816.91
8.0.160.0070.00016.90
8.0.150.0000.00716.91
8.0.140.0000.00716.64
8.0.130.0030.00313.28
8.0.120.0000.00716.92
8.0.110.0020.00516.95
8.0.100.0030.00516.92
8.0.90.0000.00816.77
8.0.80.0090.00716.84
8.0.70.0050.00316.88
8.0.60.0060.00316.72
8.0.50.0000.00717.01
8.0.30.0110.00917.14
8.0.20.0090.01017.40
8.0.10.0000.00717.01
8.0.00.0080.01016.58
7.4.330.0000.00515.15
7.4.320.0030.00316.61
7.4.300.0070.00016.65
7.4.290.0000.00716.44
7.4.280.0030.00516.60
7.4.270.0070.00016.52
7.4.260.0060.00316.64
7.4.250.0060.00316.45
7.4.240.0030.00516.50
7.4.230.0030.00316.54
7.4.220.0040.01416.59
7.4.210.0060.00916.65
7.4.200.0000.00716.31
7.4.160.0060.01016.44
7.4.150.0040.01317.40
7.4.140.0080.01317.86
7.4.130.0070.01016.58
7.4.120.0090.00816.45
7.4.110.0070.01016.41
7.4.100.0070.01016.50
7.4.90.0060.01116.51
7.4.80.0110.00619.39
7.4.70.0110.00616.58
7.4.60.0070.01716.59
7.4.50.0000.00816.63
7.4.40.0050.01116.60
7.4.30.0030.01316.58
7.4.00.0070.01014.79
7.3.330.0000.00513.20
7.3.320.0030.00313.35
7.3.310.0040.00416.38
7.3.300.0070.00016.32
7.3.290.0000.01316.39
7.3.280.0100.00816.38
7.3.270.0120.00917.40
7.3.260.0120.01316.42
7.3.250.0120.00616.33
7.3.240.0060.01216.44
7.3.230.0140.00316.52
7.3.210.0090.00916.56
7.3.200.0110.00819.39
7.3.190.0000.01716.24
7.3.180.0130.00316.52
7.3.170.0100.00716.33
7.3.160.0150.00016.36
7.2.330.0090.00916.75
7.2.320.0100.00716.68
7.2.310.0100.00716.64
7.2.300.0090.00916.43
7.2.290.0160.00316.74
7.2.110.0130.00716.71
7.2.60.0060.00916.73
7.2.00.0000.01219.40
7.1.200.0100.00315.88
7.1.100.0210.00718.24
7.1.70.0050.00217.19
7.1.60.0000.01619.40
7.1.50.0200.01634.93
7.1.00.0000.08022.34
7.0.200.5840.01016.57
7.0.140.0000.07722.15
7.0.60.0100.08319.91
7.0.50.0100.06317.89
7.0.40.0070.08320.09
7.0.30.0300.08020.38
7.0.20.0070.05020.09
7.0.10.0070.05720.33
7.0.00.0070.04020.05
5.6.280.0070.07320.79
5.6.210.0030.06720.54
5.6.200.0100.07718.19
5.6.190.0070.05020.55
5.6.180.0400.04020.51
5.6.170.0200.08720.53
5.6.160.0070.05020.54
5.6.150.0030.04318.14
5.6.140.0030.07718.21
5.6.130.0030.09318.18
5.6.120.0070.04020.92
5.6.110.0070.03721.12
5.6.100.0030.04321.14
5.6.90.0100.06721.00
5.6.80.0170.07020.38
5.5.350.0270.05320.39
5.5.340.0030.04318.05
5.5.330.0070.08020.21
5.5.320.0400.06720.30
5.5.310.0300.06320.20
5.5.300.0100.07018.08
5.5.290.0100.07718.02
5.5.280.0100.08320.80
5.5.270.0100.08320.67
5.5.260.0030.06320.75
5.5.250.0070.03720.70
5.5.240.0130.06020.37
5.4.450.0100.04719.53
5.4.440.0170.04319.64
5.4.430.0200.04319.57
5.4.420.0300.04719.55
5.4.410.0530.05019.36
5.4.400.0300.03718.88
5.4.390.0200.04018.84
5.4.380.0330.06318.83
5.4.370.0230.05318.63
5.4.360.0300.05018.53
5.4.350.0400.04718.82
5.4.340.0400.05718.80
5.4.320.0080.04112.52
5.4.310.0070.04412.52
5.4.300.0050.03812.52
5.4.290.0060.04512.51
5.4.280.0040.04012.41
5.4.270.0080.03512.41
5.4.260.0060.04112.41
5.4.250.0050.03712.41
5.4.240.0080.03412.41
5.4.230.0080.03712.40
5.4.220.0070.03512.40
5.4.210.0050.03612.40
5.4.200.0100.03512.40
5.4.190.0080.04512.40
5.4.180.0080.03412.40
5.4.170.0070.03812.40
5.4.160.0040.03912.40
5.4.150.0030.04112.40
5.4.140.0020.04212.09
5.4.130.0040.03712.07
5.4.120.0040.03812.04
5.4.110.0070.03712.03
5.4.100.0040.04112.03
5.4.90.0080.03912.03
5.4.80.0030.04012.04
5.4.70.0060.03912.02
5.4.60.0070.03312.02
5.4.50.0060.04312.03
5.4.40.0100.03012.02
5.4.30.0040.03812.01
5.4.20.0060.03712.00
5.4.10.0040.03512.01
5.4.00.0060.03511.50
5.3.290.0040.04112.80
5.3.280.0070.04212.71
5.3.270.0040.04212.73
5.3.260.0100.03712.72
5.3.250.0040.03812.72
5.3.240.0090.03312.72
5.3.230.0090.03612.71
5.3.220.0100.03212.68
5.3.210.0080.04212.68
5.3.200.0070.03412.68
5.3.190.0060.03712.68
5.3.180.0060.03812.67
5.3.170.0080.03812.67
5.3.160.0050.03912.68
5.3.150.0070.03612.68
5.3.140.0070.03712.66
5.3.130.0040.04012.66
5.3.120.0120.03612.66
5.3.110.0090.04912.66
5.3.100.0040.03812.13
5.3.90.0050.03812.11
5.3.80.0040.04812.09
5.3.70.0060.03712.09
5.3.60.0050.03912.08
5.3.50.0040.03812.02
5.3.40.0050.03912.02
5.3.30.0070.03511.98
5.3.20.0040.03711.76
5.3.10.0060.03411.73
5.3.00.0050.03711.71
5.2.170.0070.0289.22
5.2.160.0070.0289.22
5.2.150.0040.0329.21
5.2.140.0050.0309.21
5.2.130.0080.0339.17
5.2.120.0030.0299.18
5.2.110.0030.0329.18
5.2.100.0070.0269.18
5.2.90.0070.0279.18
5.2.80.0040.0329.18
5.2.70.0050.0319.17
5.2.60.0040.0319.12
5.2.50.0020.0339.09
5.2.40.0030.0309.07
5.2.30.0050.0309.05
5.2.20.0050.0289.04
5.2.10.0040.0328.95
5.2.00.0040.0298.81
5.1.60.0040.0238.09
5.1.50.0050.0288.08
5.1.40.0060.0318.07
5.1.30.0040.0258.42
5.1.20.0060.0258.44
5.1.10.0070.0278.16
5.1.00.0040.0268.16
5.0.50.0060.0196.64
5.0.40.0030.0206.50
5.0.30.0020.0326.31
5.0.20.0050.0176.29
5.0.10.0020.0216.26
5.0.00.0050.0286.25
4.4.90.0030.0154.78
4.4.80.0020.0154.75
4.4.70.0010.0174.75
4.4.60.0010.0174.75
4.4.50.0030.0154.77
4.4.40.0030.0344.71
4.4.30.0020.0224.76
4.4.20.0040.0164.84
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0030.0154.66
4.3.100.0060.0114.67
4.3.90.0040.0134.64
4.3.80.0010.0264.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0010.0173.30
4.3.20.0020.0163.27
4.3.10.0010.0163.24
4.3.00.0070.01715.65

preferences:
44.14 ms | 401 KiB | 5 Q