3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a,b,c,d,e,f'; function g($a) { echo 'in'; yield from ['a,b,c,d,e,f'] /*preg_split('/,/' , $a)*/; echo 'ou'; }; foreach (g($a) as $t) { var_dump($t); }

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.0150.00416.38
8.3.50.0060.00916.23
8.3.40.0110.00718.84
8.3.30.0140.00718.52
8.3.20.0080.00020.86
8.3.10.0000.00721.73
8.3.00.0040.00419.35
8.2.180.0110.00418.54
8.2.170.0090.00918.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.53
8.2.110.0070.00322.24
8.2.100.0120.00017.78
8.2.90.0060.00319.18
8.2.80.0000.00917.97
8.2.70.0030.00717.63
8.2.60.0070.00018.04
8.2.50.0030.00618.10
8.2.40.0040.00422.25
8.2.30.0060.00321.09
8.2.20.0070.00018.13
8.2.10.0000.00817.93
8.2.00.0040.00418.16
8.1.280.0160.00625.92
8.1.270.0000.00723.86
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.97
8.1.230.0060.00619.34
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0040.00418.69
8.1.160.0000.00818.86
8.1.150.0040.00420.72
8.1.140.0000.01019.58
8.1.130.0030.00318.86
8.1.120.0040.00417.44
8.1.110.0050.00217.49
8.1.100.0030.00517.45
8.1.90.0030.00517.38
8.1.80.0000.01017.34
8.1.70.0040.00417.48
8.1.60.0030.00517.61
8.1.50.0040.00417.56
8.1.40.0080.00317.45
8.1.30.0040.00417.63
8.1.20.0040.00417.67
8.1.10.0040.00417.38
8.1.00.0050.00217.41
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0050.00218.43
8.0.270.0040.00417.20
8.0.260.0000.00716.92
8.0.250.0030.00316.97
8.0.240.0040.00416.98
8.0.230.0000.00716.81
8.0.220.0060.00016.84
8.0.210.0000.00916.77
8.0.200.0070.00316.98
8.0.190.0000.00816.93
8.0.180.0000.00716.80
8.0.170.0040.00416.93
8.0.160.0000.00716.84
8.0.150.0000.00816.71
8.0.140.0070.00016.80
8.0.130.0030.00313.28
8.0.120.0070.00016.82
8.0.110.0000.00716.90
8.0.100.0030.00516.75
8.0.90.0070.00016.71
8.0.80.0060.00916.93
8.0.70.0040.00416.89
8.0.60.0030.00616.89
8.0.50.0000.00716.92
8.0.30.0110.00717.18
8.0.20.0100.01117.41
8.0.10.0000.00717.12
8.0.00.0120.00616.95
7.4.330.0060.00015.55
7.4.320.0030.00316.60
7.4.300.0070.00016.63
7.4.290.0040.00416.56
7.4.280.0050.00316.48
7.4.270.0100.00016.36
7.4.260.0000.00513.19
7.4.250.0040.00416.58
7.4.240.0000.00816.43
7.4.230.0070.00016.60
7.4.220.0140.00516.61
7.4.210.0070.00716.50
7.4.200.0030.00316.69
7.4.160.0050.01116.44
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0110.00816.37
7.4.120.0100.00916.51
7.4.110.0130.00416.70
7.4.100.0080.00816.32
7.4.90.0110.00516.58
7.4.80.0100.00719.39
7.4.70.0030.01416.56
7.4.60.0160.00016.54
7.4.50.0070.00716.57
7.4.40.0100.00716.46
7.4.30.0030.01716.74
7.4.00.0090.00615.09
7.3.330.0000.00513.26
7.3.320.0030.00313.10
7.3.310.0050.00316.25
7.3.300.0070.00016.24
7.3.290.0080.00616.21
7.3.280.0070.00916.22
7.3.270.0070.01117.40
7.3.260.0130.00616.38
7.3.250.0110.00816.31
7.3.240.0110.01116.25
7.3.230.0100.00716.31
7.3.210.0100.00616.36
7.3.200.0030.01316.28
7.3.190.0430.00316.32
7.3.180.0220.00016.30
7.3.170.0070.01116.32
7.3.160.0090.00616.21
7.2.330.0110.00716.70
7.2.320.0060.01016.36
7.2.310.0130.00316.63
7.2.300.0060.01216.48
7.2.290.0140.00316.50
7.2.60.0090.00616.90
7.2.00.0000.01219.42
7.1.200.0030.00915.50
7.1.100.0030.00717.81
7.1.70.0000.01117.12
7.1.60.0000.01017.22
7.1.50.0030.01016.79
7.1.40.0060.01216.39
7.1.30.0040.00916.41
7.1.20.0110.00716.56
7.1.10.0040.00416.71
7.1.00.0040.00816.55
7.0.200.0030.00316.62
7.0.190.0000.00816.57
7.0.180.0000.00916.30
7.0.170.0040.00416.30
7.0.160.0060.00316.20
7.0.150.0030.00516.30
7.0.140.0060.00616.40
7.0.130.0030.00716.52
7.0.120.0090.00016.38
7.0.110.0080.00516.39
7.0.100.0000.01216.20
7.0.90.0080.00416.36
7.0.80.0070.00716.31
7.0.70.0060.00616.25
7.0.60.0060.00616.20
7.0.50.0110.00016.20
7.0.40.0050.00516.20
7.0.30.0030.00916.20
7.0.20.0030.00916.20
7.0.10.0160.00016.20
7.0.00.0000.01116.20

preferences:
53.77 ms | 401 KiB | 5 Q