3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_gen() { echo "Starting generator\n"; $a = yield; echo $a . "\n"; } $gen = get_gen(); $gen->send(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.130.0070.00718.28
8.3.120.0030.00618.72
8.3.110.0030.00620.94
8.3.100.0050.00524.06
8.3.90.0040.00426.77
8.3.80.0100.00018.30
8.3.70.0110.00716.61
8.3.60.0100.01018.43
8.3.50.0120.00522.05
8.3.40.0140.00718.73
8.3.30.0100.00318.96
8.3.20.0040.00420.04
8.3.10.0080.00023.73
8.3.00.0040.00419.07
8.2.250.0060.00316.77
8.2.240.0040.00417.27
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0080.00026.77
8.2.200.0060.00316.38
8.2.190.0170.00316.58
8.2.180.0140.00716.38
8.2.170.0070.00722.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0090.00626.16
8.2.120.0000.00819.35
8.2.110.0030.00621.02
8.2.100.0060.00617.84
8.2.90.0000.01017.91
8.2.80.0000.00818.09
8.2.70.0080.00017.80
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0080.00020.59
8.2.30.0000.00718.24
8.2.20.0070.00017.73
8.2.10.0050.00318.04
8.2.00.0070.00319.50
8.1.300.0060.00318.56
8.1.290.0100.00030.84
8.1.280.0090.00625.92
8.1.270.0100.00723.77
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.43
8.1.230.0060.00620.88
8.1.220.0040.00417.74
8.1.210.0050.00318.89
8.1.200.0090.00017.48
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0080.00018.38
8.1.160.0000.00722.04
8.1.150.0040.00418.49
8.1.140.0040.00417.44
8.1.130.0030.00317.92
8.1.120.0030.00317.36
8.1.110.0000.00717.47
8.1.100.0000.00717.35
8.1.90.0040.00417.36
8.1.80.0040.00417.33
8.1.70.0000.00717.33
8.1.60.0080.00017.59
8.1.50.0000.00817.48
8.1.40.0020.00517.51
8.1.30.0050.00317.60
8.1.20.0070.00017.55
8.1.10.0050.00217.48
8.1.00.0000.00717.34
8.0.300.0070.00020.13
8.0.290.0080.00016.75
8.0.280.0030.00318.44
8.0.270.0080.00017.24
8.0.260.0030.00317.24
8.0.250.0070.00016.95
8.0.240.0000.00716.92
8.0.230.0040.00416.90
8.0.220.0000.00716.88
8.0.210.0040.00416.80
8.0.200.0030.00316.93
8.0.190.0030.00317.00
8.0.180.0000.00716.81
8.0.170.0040.00416.86
8.0.160.0070.00016.93
8.0.150.0040.00816.73
8.0.140.0080.00016.70
8.0.130.0040.00413.34
8.0.120.0040.00416.79
8.0.110.0000.00716.83
8.0.100.0000.00716.68
8.0.90.0000.00816.66
8.0.80.0120.00916.93
8.0.70.0040.00416.84
8.0.60.0000.00716.98
8.0.50.0000.00816.81
8.0.30.0090.01517.01
8.0.20.0090.00917.41
8.0.10.0000.00916.77
8.0.00.0110.00716.68
7.4.330.0050.00015.10
7.4.320.0000.00616.61
7.4.300.0000.00616.41
7.4.290.0030.00316.56
7.4.280.0050.00316.49
7.4.270.0050.00316.55
7.4.260.0030.00316.47
7.4.250.0040.00416.59
7.4.240.0050.00416.51
7.4.230.0000.00716.57
7.4.220.0030.01216.52
7.4.210.0040.01116.53
7.4.200.0030.00316.68
7.4.160.0080.00816.49
7.4.150.0030.01317.40
7.4.140.0100.00717.86
7.4.130.0050.01216.45
7.4.120.0070.01016.41
7.4.110.0140.00316.49
7.4.100.0140.00316.56
7.4.90.0170.00016.46
7.4.80.0150.00719.39
7.4.70.0060.00916.39
7.4.60.0120.00416.45
7.4.50.0000.00716.41
7.4.40.0030.01316.47
7.4.30.0090.01216.52
7.4.00.0100.00715.16
7.3.330.0000.00513.16
7.3.320.0000.00513.30
7.3.310.0030.00316.27
7.3.300.0040.00416.31
7.3.290.0110.00416.28
7.3.280.0120.00716.27
7.3.270.0090.00917.40
7.3.260.0120.00916.66
7.3.250.0090.01116.36
7.3.240.0000.01816.52
7.3.230.0030.01216.46
7.3.210.0090.00916.46
7.3.200.0040.01319.39
7.3.190.0070.01116.38
7.3.180.0030.01316.52
7.3.170.0030.01216.47
7.3.160.0060.01016.43
7.3.120.0000.01414.94
7.2.330.0180.00016.43
7.2.320.0150.00616.40
7.2.310.0070.01316.82
7.2.300.0090.00916.65
7.2.290.0100.00516.59
7.2.60.0070.00717.04
7.1.200.0100.00015.85
7.1.70.0030.00617.01
7.1.60.0160.00919.70
7.1.50.0140.01416.94
7.1.00.0030.07722.51
7.0.200.0000.00716.74
7.0.140.0000.07722.08
7.0.60.0100.04320.00
7.0.50.0000.04317.91
7.0.40.0030.07020.24
7.0.30.0130.08020.25
7.0.20.0230.07020.27
7.0.10.0100.08320.26
7.0.00.0100.06720.14
5.6.280.0030.07721.05
5.6.210.0030.08320.51
5.6.200.0030.04718.18
5.6.190.0070.07720.46
5.6.180.0030.05320.42
5.6.170.0130.03320.77
5.6.160.0200.06320.51
5.6.150.0070.05020.37
5.6.140.0100.06020.23
5.6.130.0070.06020.40
5.6.120.0000.05020.34
5.6.110.0130.07720.37
5.6.100.0030.06720.48
5.6.90.0070.05320.30
5.6.80.0070.06719.82
5.6.70.0030.06319.55
5.6.60.0030.04319.60
5.6.50.0100.08019.79
5.6.40.0100.06319.53
5.6.30.0070.05019.69
5.6.20.0070.05719.48
5.6.10.0100.07719.68
5.6.00.0130.07719.55
5.5.350.0070.08020.40
5.5.340.0070.06318.08
5.5.330.0070.07320.19
5.5.320.0130.07320.44
5.5.310.0030.04320.47
5.5.300.0100.08720.17
5.5.290.0030.04320.14
5.5.280.0070.05720.12
5.5.270.0070.07720.02
5.5.260.0100.07720.11
5.5.250.0070.08320.04
5.5.240.0130.06319.38
5.5.230.0030.04319.35
5.5.220.0070.04019.58
5.5.210.0170.04019.58
5.5.200.0100.07719.48
5.5.190.0130.07319.55
5.5.180.0100.08019.59
5.5.160.0100.07019.32
5.5.150.0000.07319.55
5.5.140.0100.04319.33
5.5.130.0130.05319.48
5.5.120.0100.06719.55
5.5.110.0130.05019.64
5.5.100.0130.07719.46
5.5.90.0100.07319.24
5.5.80.0070.08019.48
5.5.70.0070.06019.41
5.5.60.0070.07319.28
5.5.50.0130.06019.21
5.5.40.0070.04319.43
5.5.30.0000.04319.61
5.5.20.0100.07019.61
5.5.10.0100.07319.43
5.5.00.0070.06319.41
5.4.450.0100.05019.48
5.4.440.0070.06319.47
5.4.430.0130.07319.47
5.4.420.0030.04719.48
5.4.410.0070.08019.15
5.4.400.0130.04319.16
5.4.390.0170.05719.16
5.4.380.0130.07019.20
5.4.370.0100.07019.14
5.4.360.0030.05019.25
5.4.350.0130.06318.85
5.4.340.0030.08018.93
5.4.320.0030.07718.98
5.4.310.0130.08018.87
5.4.300.0070.05018.92
5.4.290.0070.07319.15
5.4.280.0070.07319.12
5.4.270.0100.08018.92
5.4.260.0100.04719.12
5.4.250.0030.08018.86
5.4.240.0100.05019.07
5.4.230.0130.04718.85
5.4.220.0130.07719.13
5.4.210.0030.04019.15
5.4.200.0070.07019.23
5.4.190.0030.04018.99
5.4.180.0000.04718.95
5.4.170.0070.04019.11
5.4.160.0030.06318.88
5.4.150.0000.06718.83
5.4.140.0070.05316.38
5.4.130.0000.04316.33
5.4.120.0030.04716.44
5.4.110.0030.04716.39
5.4.100.0030.05016.47
5.4.90.0070.07016.55
5.4.80.0000.07016.50
5.4.70.0030.07316.65
5.4.60.0070.07016.26
5.4.50.0070.06016.40
5.4.40.0100.04716.33
5.4.30.0170.06316.36
5.4.20.0070.07316.30
5.4.10.0170.04316.34
5.4.00.0070.06715.84
5.3.290.0130.05714.68
5.3.280.0070.05014.50
5.3.270.0070.04014.60
5.3.260.0030.08014.68
5.3.250.0030.04014.75
5.3.240.0070.07314.66
5.3.230.0030.05714.59
5.3.220.0070.07314.62
5.3.210.0100.07314.57
5.3.200.0030.07014.61
5.3.190.0070.04314.57
5.3.180.0200.07014.55
5.3.170.0070.06014.61
5.3.160.0030.07714.57
5.3.150.0030.06714.61
5.3.140.0130.04314.55
5.3.130.0070.05014.54
5.3.120.0100.07714.56
5.3.110.0070.06314.56
5.3.100.0030.08014.06
5.3.90.0030.08014.02
5.3.80.0170.06014.01
5.3.70.0070.08014.04
5.3.60.0030.07313.96
5.3.50.0070.07313.99
5.3.40.0070.07014.00
5.3.30.0070.06313.95
5.3.20.0100.04713.63
5.3.10.0070.05313.71
5.3.00.0070.04013.64
5.2.170.0130.05011.15
5.2.160.0000.04311.09
5.2.150.0100.03311.14
5.2.140.0030.05311.20
5.2.130.0070.05311.05
5.2.120.0070.06011.05
5.2.110.0000.04011.24
5.2.100.0030.03311.15
5.2.90.0030.05311.14
5.2.80.0030.04010.98
5.2.70.0000.03311.13
5.2.60.0070.06311.10
5.2.50.0030.06710.98
5.2.40.0100.06010.94
5.2.30.0070.06311.00
5.2.20.0100.04310.97
5.2.10.0130.06010.75
5.2.00.0030.06710.87
5.1.60.0030.0539.89
5.1.50.0030.0279.90
5.1.40.0070.0209.88
5.1.30.0030.05710.30
5.1.20.0100.05310.42
5.1.10.0030.06010.08
5.1.00.0100.0479.97
5.0.50.0070.0308.45
5.0.40.0000.0238.43
5.0.30.0070.0578.36
5.0.20.0030.0278.20
5.0.10.0030.0438.21
5.0.00.0030.0578.16
4.4.90.0070.0337.47
4.4.80.0070.0237.47
4.4.70.0000.0277.47
4.4.60.0030.0377.47
4.4.50.0000.0377.47
4.4.40.0030.0277.47
4.4.30.0000.0237.47
4.4.20.0000.0307.47
4.4.10.0030.0337.47
4.4.00.0070.0277.47
4.3.110.0030.0337.47
4.3.100.0130.0177.47
4.3.90.0070.0207.47
4.3.80.0000.0307.47
4.3.70.0000.0377.47
4.3.60.0030.0337.47
4.3.50.0030.0237.47
4.3.40.0030.0437.47
4.3.30.0030.0237.47
4.3.20.0030.0237.47
4.3.10.0000.0277.47
4.3.00.0000.0377.47

preferences:
42.64 ms | 403 KiB | 5 Q