3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a,b,c,d,e,f'; function g($a) { echo 'in'; yield from 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.0170.00316.75
8.3.50.0100.01016.66
8.3.40.0140.00718.93
8.3.30.0110.00418.98
8.3.20.0040.00420.82
8.3.10.0040.00421.90
8.3.00.0030.00519.66
8.2.180.0070.01116.63
8.2.170.0120.00322.96
8.2.160.0060.00920.32
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00722.25
8.2.120.0040.00426.35
8.2.110.0000.00919.24
8.2.100.0090.00317.84
8.2.90.0000.00818.90
8.2.80.0050.00317.97
8.2.70.0000.00817.88
8.2.60.0050.00318.05
8.2.50.0090.00018.10
8.2.40.0030.00622.29
8.2.30.0000.00820.93
8.2.20.0030.00618.13
8.2.10.0030.00518.01
8.2.00.0040.00418.13
8.1.280.0150.00025.92
8.1.270.0050.00323.96
8.1.260.0050.00226.35
8.1.250.0150.00028.09
8.1.240.0000.00919.22
8.1.230.0040.00819.09
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0080.00217.50
8.1.190.0080.00017.35
8.1.180.0070.00018.10
8.1.170.0040.00418.77
8.1.160.0050.00219.03
8.1.150.0030.00520.66
8.1.140.0070.00319.51
8.1.130.0030.00518.91
8.1.120.0070.00017.49
8.1.110.0040.00417.61
8.1.100.0070.00017.64
8.1.90.0050.00317.63
8.1.80.0080.00317.50
8.1.70.0040.00417.60
8.1.60.0000.00917.65
8.1.50.0040.00417.57
8.1.40.0030.00617.70
8.1.30.0040.00417.63
8.1.20.0030.00617.75
8.1.10.0050.00317.63
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0030.00616.88
8.0.280.0030.00318.46
8.0.270.0060.00317.28
8.0.260.0060.00016.95
8.0.250.0000.00717.08
8.0.240.0080.00017.10
8.0.230.0070.00017.04
8.0.220.0000.00717.01
8.0.210.0090.00017.02
8.0.200.0030.00617.10
8.0.190.0040.00416.97
8.0.180.0050.00316.96
8.0.170.0040.00417.02
8.0.160.0070.00017.06
8.0.150.0000.00816.90
8.0.140.0040.00416.92
8.0.130.0000.00713.52
8.0.120.0000.00716.92
8.0.110.0030.00617.04
8.0.100.0050.00216.91
8.0.90.0000.00817.07
8.0.80.0030.01317.07
8.0.70.0040.00416.90
8.0.60.0040.00417.00
8.0.50.0050.00317.09
8.0.30.0110.00716.99
8.0.20.0150.00517.46
8.0.10.0050.00217.01
8.0.00.0060.00916.69
7.4.330.0020.00215.55
7.4.320.0000.00716.66
7.4.300.0000.00616.80
7.4.290.0030.00616.80
7.4.280.0040.00416.71
7.4.270.0000.00916.81
7.4.260.0050.00013.45
7.4.250.0000.00816.59
7.4.240.0000.00816.63
7.4.230.0030.00316.51
7.4.220.0210.00616.60
7.4.210.0070.00716.72
7.4.200.0040.00416.54
7.4.160.0000.01816.67
7.4.150.0110.00817.40
7.4.140.0090.01317.86
7.4.130.0100.01016.52
7.4.120.0100.00916.66
7.4.110.0030.01616.47
7.4.100.0100.01116.98
7.4.90.0090.00916.64
7.4.80.0040.01419.39
7.4.70.0110.00616.70
7.4.60.0030.01316.50
7.4.50.0100.00616.64
7.4.40.0060.01016.82
7.4.30.0130.00316.60
7.4.00.0110.00715.18
7.3.330.0030.00313.24
7.3.320.0030.00313.19
7.3.310.0040.00416.28
7.3.300.0030.00316.38
7.3.290.0120.00516.35
7.3.280.0060.01116.35
7.3.270.0130.00417.40
7.3.260.0120.00716.56
7.3.250.0110.00816.62
7.3.240.0090.01216.61
7.3.230.0090.00916.67
7.3.210.0090.00916.50
7.3.200.0150.00816.50
7.3.190.0020.00916.74
7.3.180.0030.01316.61
7.3.170.0080.00816.58
7.3.160.0000.01616.52
7.2.330.0120.01216.64
7.2.320.0090.01516.82
7.2.310.0120.00616.82
7.2.300.0160.00316.83
7.2.290.0120.00416.65
7.2.60.0070.01017.20
7.2.00.0090.00619.47
7.1.200.0040.00816.07
7.1.100.0000.01118.51
7.1.70.0100.00317.11
7.1.60.0200.01033.16
7.1.50.0170.01733.26
7.1.40.2030.01732.77
7.1.30.0170.02032.77
7.1.20.0230.00733.17
7.1.10.0100.00714.85
7.1.00.0070.01014.83
7.0.200.0230.01014.94
7.0.190.2870.01014.84
7.0.180.0270.01714.75
7.0.170.0070.01014.52
7.0.160.0030.01014.67
7.0.150.0070.01714.58
7.0.140.0000.01714.70
7.0.130.0030.01014.96
7.0.120.0070.01314.70
7.0.110.2570.01014.79
7.0.100.2570.01714.61
7.0.90.2900.00714.43
7.0.80.0070.01014.90
7.0.70.2530.02014.63
7.0.60.1470.01014.66
7.0.50.2530.01314.65
7.0.40.2330.00714.77
7.0.30.1870.01314.56
7.0.20.2030.01014.68
7.0.10.2000.01014.65
7.0.00.2030.00714.89

preferences:
60.89 ms | 401 KiB | 5 Q