3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printer() { $i=true; $times=1; while ($i) { $string = yield; yield $string; $times++; $i=false; echo $times,"\n"; } } $printer = printer(); $printer->send('Hello world!'); echo $printer->current(); ?>

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.0070.00716.75
8.3.50.0150.00322.09
8.3.40.0110.00418.85
8.3.30.0170.00019.10
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0080.00020.64
8.2.180.0120.00316.50
8.2.170.0060.01622.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00422.25
8.2.110.0040.00422.30
8.2.100.0080.00417.78
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0040.00717.50
8.2.60.0040.00417.93
8.2.50.0030.00718.07
8.2.40.0000.00918.22
8.2.30.0040.00417.96
8.2.20.0040.00417.57
8.2.10.0000.00717.64
8.2.00.0000.00717.59
8.1.280.0030.01025.92
8.1.270.0030.00523.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.64
8.1.230.0090.00319.16
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.23
8.1.190.0000.00717.51
8.1.180.0000.00818.10
8.1.170.0000.00818.53
8.1.160.0000.01021.90
8.1.150.0070.00018.63
8.1.140.0070.00017.38
8.1.130.0040.00417.70
8.1.120.0040.00417.38
8.1.110.0070.00017.40
8.1.100.0000.00717.41
8.1.90.0030.00317.30
8.1.80.0070.00017.32
8.1.70.0000.00717.24
8.1.60.0040.00417.54
8.1.50.0030.00517.47
8.1.40.0070.00017.49
8.1.30.0030.00617.51
8.1.20.0040.00417.61
8.1.10.0000.00817.49
8.1.00.0040.00417.27
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.33
8.0.270.0000.00717.16
8.0.260.0000.00818.49
8.0.250.0030.00316.96
8.0.240.0000.00716.84
8.0.230.0070.00016.90
8.0.220.0070.00016.87
8.0.210.0030.00316.83
8.0.200.0030.00316.77
8.0.190.0080.00016.95
8.0.180.0000.00716.82
8.0.170.0040.00316.85
8.0.160.0040.00416.84
8.0.150.0040.00416.84
8.0.140.0050.00216.84
8.0.130.0030.00313.27
8.0.120.0080.00016.68
8.0.110.0040.00416.89
8.0.100.0000.00716.65
8.0.90.0000.00716.69
8.0.80.0060.01616.83
8.0.70.0040.00416.77
8.0.60.0050.00316.64
8.0.50.0000.00716.65
8.0.30.0140.00417.00
8.0.20.0120.00917.40
8.0.10.0040.00416.76
8.0.00.0100.00716.84
7.4.330.0060.00015.00
7.4.320.0000.00616.44
7.4.300.0040.00416.39
7.4.290.0000.00916.50
7.4.280.0020.00516.58
7.4.270.0000.00716.49
7.4.260.0030.00316.50
7.4.250.0040.00416.55
7.4.240.0040.00416.55
7.4.230.0000.00716.66
7.4.220.0030.01416.44
7.4.210.0120.00616.58
7.4.200.0000.00716.34
7.4.190.0000.00716.75
7.4.160.0150.00616.48
7.4.150.0100.00717.40
7.4.140.0080.00817.86
7.4.130.0090.00916.59
7.4.120.0080.00816.48
7.4.110.0000.01716.47
7.4.100.0150.00416.36
7.4.90.0090.01516.36
7.4.80.0120.00316.58
7.4.70.0060.01216.51
7.4.60.0100.00616.35
7.4.50.0030.00616.19
7.4.40.0000.01522.77
7.4.30.0030.01316.57
7.4.00.0030.00614.61
7.3.330.0000.00513.29
7.3.320.0000.00613.30
7.3.310.0000.00716.28
7.3.300.0030.00316.25
7.3.290.0040.01116.28
7.3.280.0110.00716.24
7.3.270.0140.00317.40
7.3.260.0100.00716.21
7.3.250.0130.00616.33
7.3.240.0040.01216.58
7.3.230.0130.00316.39
7.3.210.0060.01216.32
7.3.200.0120.00619.39
7.3.190.0140.00816.62
7.3.180.0060.01016.36
7.3.170.0060.01316.50
7.3.160.0130.00316.36
7.3.120.0070.01014.77
7.3.10.0130.00716.39
7.3.00.0130.01316.20
7.2.330.0030.02316.27
7.2.320.0060.01316.69
7.2.310.0060.01616.77
7.2.300.0150.00916.40
7.2.290.0030.01316.43
7.2.130.0110.00716.09
7.2.120.0050.01416.08
7.2.110.0140.00716.23
7.2.100.0120.00916.57
7.2.90.0100.01316.16
7.2.80.0000.01616.42
7.2.70.0080.00816.68
7.2.60.0000.01516.50
7.2.50.0130.00716.70
7.2.40.0100.00516.18
7.2.30.0040.01116.23
7.2.20.0100.00716.54
7.2.10.0110.00716.76
7.2.00.0070.00918.12
7.1.250.0120.00815.48
7.1.100.0040.00817.95
7.1.70.0030.00517.31
7.1.60.0100.01319.29
7.1.50.0120.00916.68
7.1.00.0100.07022.44
7.0.200.0080.00016.65
7.0.140.0100.06721.97
7.0.60.0030.09020.05
7.0.50.0000.09017.96
7.0.40.0070.07720.24
7.0.30.0330.08020.16
7.0.20.0370.05020.24
7.0.10.0270.05020.33
7.0.00.0100.08020.20
5.6.280.0030.07321.07
5.6.210.0100.07320.45
5.6.200.0030.08018.14
5.6.190.0100.03720.50
5.6.180.0070.07020.39
5.6.170.0200.03720.47
5.6.160.0030.07720.54
5.6.150.0070.04318.18
5.6.140.0100.05318.18
5.6.130.0030.08018.14
5.6.120.0130.08020.87
5.6.110.0070.04321.03
5.6.100.0100.07321.11
5.6.90.0200.07020.98
5.6.80.0070.08020.38
5.6.70.2730.03720.40
5.5.350.0030.07720.47
5.5.340.0100.08717.98
5.5.330.0070.04320.34
5.5.320.0000.08020.38
5.5.310.0230.08320.51
5.5.300.0100.06317.92
5.5.290.0030.08017.98
5.5.280.0070.04320.98
5.5.270.0000.09020.83
5.5.260.0170.07720.82
5.5.250.0070.07320.69
5.5.240.0130.07320.19
5.4.450.1230.03319.46
5.4.440.0170.06019.47
5.4.430.0230.05319.18
5.4.420.0170.06019.16
5.4.410.0130.06019.41
5.4.400.1200.07018.82
5.4.390.1330.05318.84
5.4.380.0230.04318.51
5.4.370.0200.06018.58
5.4.360.0200.05018.73
5.4.350.0230.04718.73
5.4.340.0200.04718.47
5.4.320.0070.03612.52
5.4.310.0040.04012.51
5.4.300.0070.03712.52
5.4.290.0050.03812.51
5.4.280.0080.03612.41
5.4.270.0070.03612.41
5.4.260.0070.03612.41
5.4.250.0050.03712.41
5.4.240.0070.03512.41
5.4.230.0080.03812.40
5.4.220.0120.05012.38
5.4.210.0180.04012.39
5.4.200.0160.04612.38
5.4.190.0160.04912.38
5.4.180.0150.04212.38
5.4.170.0250.06412.39
5.4.160.0170.04412.39
5.4.150.0110.04812.38
5.4.140.0210.04112.08
5.4.130.0200.04312.05
5.4.120.0170.04612.02
5.4.110.0190.07312.02
5.4.100.0180.04312.02
5.4.90.0140.04612.02
5.4.80.0170.04212.02
5.4.70.0190.04112.01
5.4.60.0170.04012.02
5.4.50.0300.08612.01
5.4.40.0160.04712.00
5.4.30.0130.04412.00
5.4.20.0130.04311.99
5.4.10.0140.04212.00
5.4.00.0210.06611.48
5.3.290.0100.03612.80
5.3.280.0090.04412.71
5.3.270.0150.04912.73
5.3.260.0190.04412.72
5.3.250.0150.04812.72
5.3.240.0160.04812.72
5.3.230.0180.04512.71
5.3.220.0210.10312.68
5.3.210.0220.04812.68
5.3.200.0120.05112.68
5.3.190.0230.04012.68
5.3.180.0480.08112.67
5.3.170.0270.03612.67
5.3.160.0250.04012.67
5.3.150.0210.04312.68
5.3.140.0190.04212.66
5.3.130.0310.06212.66
5.3.120.0180.04812.66
5.3.110.0180.04912.65
5.3.100.0320.06212.12
5.3.90.0220.04612.08
5.3.80.0200.05112.08
5.3.70.0190.04512.07
5.3.60.0220.04412.07
5.3.50.0170.04512.00
5.3.40.0200.05012.00
5.3.30.0150.04711.96
5.3.20.0470.07811.75
5.3.10.0230.04111.70
5.3.00.0160.04611.69
5.2.170.0180.0419.20
5.2.160.0150.0369.20
5.2.150.0120.0399.20
5.2.140.0160.0339.20
5.2.130.0210.0389.16
5.2.120.0290.0809.16
5.2.110.0180.0369.16
5.2.100.0170.0679.16
5.2.90.0460.0759.16
5.2.80.0170.0369.15
5.2.70.0140.0379.14
5.2.60.0150.0339.11
5.2.50.0220.0879.07
5.2.40.0170.0639.05
5.2.30.0130.0359.02
5.2.20.0300.0789.02
5.2.10.0130.0348.91
5.2.00.0250.0468.77
5.1.60.0140.0288.06
5.1.50.0100.0308.05
5.1.40.0080.0328.05
5.1.30.0310.0748.38
5.1.20.0330.0778.42
5.1.10.0220.0818.14
5.1.00.0340.0748.14
5.0.50.0230.0756.61
5.0.40.0250.0726.47
5.0.30.0070.0406.30
5.0.20.0120.0216.26
5.0.10.0130.0206.23
5.0.00.0140.0356.22
4.4.90.0080.0174.78
4.4.80.0140.0144.75
4.4.70.0080.0174.75
4.4.60.0160.0334.76
4.4.50.0090.0174.77
4.4.40.0080.0284.71
4.4.30.0070.0254.76
4.4.20.0090.0184.84
4.4.10.0370.0534.85
4.4.00.0080.0324.76
4.3.110.0200.0544.67
4.3.100.0080.0174.67
4.3.90.0080.0194.63
4.3.80.0060.0294.59
4.3.70.0090.0164.63
4.3.60.0080.0314.63
4.3.50.0090.0164.63
4.3.40.0100.0264.54
4.3.30.0100.0163.29
4.3.20.0200.0663.28
4.3.10.0210.0633.25
4.3.00.0070.01312.57

preferences:
39.83 ms | 401 KiB | 5 Q