3v4l.org

run code in 300+ PHP versions simultaneously
<?php function from1251($a) { return $a; } function foo() { yield from1251('df'); } foreach(foo() as $bar) { var_dump($bar); }

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.70.0160.00316.38
8.3.60.0090.00918.43
8.3.50.0150.00522.11
8.3.40.0090.00618.57
8.3.30.0090.00618.71
8.3.20.0030.00520.34
8.3.10.0040.00420.21
8.3.00.0030.00721.73
8.2.190.0090.00616.63
8.2.180.0110.00718.11
8.2.170.0140.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0060.00319.27
8.2.100.0080.00417.91
8.2.90.0000.00819.52
8.2.80.0030.00518.00
8.2.70.0000.00818.04
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0040.00420.50
8.2.30.0040.00419.19
8.2.20.0000.00717.93
8.2.10.0040.00418.11
8.2.00.0040.00418.25
8.1.280.0150.00625.92
8.1.270.0050.00222.05
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00420.82
8.1.230.0040.00719.10
8.1.220.0070.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0040.00418.74
8.1.160.0050.00318.76
8.1.150.0050.00220.26
8.1.140.0000.00819.57
8.1.130.0040.00417.51
8.1.120.0020.00517.41
8.1.110.0000.00817.46
8.1.100.0040.00417.41
8.1.90.0000.00817.49
8.1.80.0030.00517.45
8.1.70.0070.00017.35
8.1.60.0000.00817.60
8.1.50.0070.00017.52
8.1.40.0000.00917.56
8.1.30.0000.00817.66
8.1.20.0030.00517.48
8.1.10.0040.00417.44
8.1.00.0000.00817.46
8.0.300.0000.00720.09
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0070.00017.17
8.0.260.0040.00416.82
8.0.250.0000.00616.95
8.0.240.0050.00216.82
8.0.230.0070.00016.83
8.0.220.0000.00816.78
8.0.210.0080.00016.88
8.0.200.0030.00316.93
8.0.190.0040.00416.93
8.0.180.0070.00016.80
8.0.170.0040.00416.95
8.0.160.0070.00016.82
8.0.150.0060.00316.79
8.0.140.0070.00016.84
8.0.130.0030.00313.34
8.0.120.0040.00416.78
8.0.110.0000.00716.91
8.0.100.0050.00216.84
8.0.90.0000.00716.86
8.0.80.0090.00916.95
8.0.70.0070.00016.83
8.0.60.0040.00416.70
8.0.50.0000.00716.84
8.0.30.0160.00617.13
8.0.20.0080.01117.40
8.0.10.0040.00416.83
8.0.00.0120.00416.80
7.4.330.0050.00015.55
7.4.320.0030.00316.44
7.4.300.0060.00016.54
7.4.290.0030.00316.51
7.4.280.0000.00716.48
7.4.270.0070.00016.52
7.4.260.0020.00516.51
7.4.250.0040.00416.34
7.4.240.0050.00216.61
7.4.230.0000.00716.49
7.4.220.0070.01016.51
7.4.210.0100.00316.56
7.4.200.0000.00716.35
7.4.160.0090.00916.46
7.4.150.0150.00617.40
7.4.140.0120.01117.86
7.4.130.0090.01516.53
7.4.120.0120.01116.53
7.4.110.0170.00716.46
7.4.100.0080.01516.24
7.4.90.0160.00316.52
7.4.80.0060.01019.39
7.4.70.0100.01316.43
7.4.60.0030.01416.53
7.4.50.0090.00316.66
7.4.40.0130.00716.23
7.4.30.0110.00516.55
7.3.330.0040.00313.21
7.3.320.0020.00213.21
7.3.310.0040.00416.26
7.3.300.0000.00716.25
7.3.290.0040.01116.21
7.3.280.0090.00916.23
7.3.270.0100.00617.40
7.3.260.0130.00616.60
7.3.250.0140.00416.35
7.3.240.0100.00716.44
7.3.230.0030.01516.46
7.3.210.0130.00716.27
7.3.200.0070.01016.61
7.3.190.0060.01216.38
7.3.180.0080.01016.20
7.3.170.0080.01616.21
7.3.160.0100.00616.26
7.2.330.0060.01116.41
7.2.320.0030.01416.73
7.2.310.0030.01316.53
7.2.300.0040.01416.52
7.2.290.0090.01316.69
7.1.30.1740.07036.44
7.1.20.4040.06136.42
7.1.10.1200.06320.39
7.1.00.2780.06920.52
7.0.170.1190.06820.01
7.0.160.3900.06320.03
7.0.150.1210.06420.02
7.0.140.2660.06320.00
7.0.130.3220.06120.00
7.0.120.3570.05420.08
7.0.110.4070.06319.95
7.0.100.3670.06219.97
7.0.90.3300.06020.14
7.0.80.3080.06420.03
7.0.70.2880.06720.05
7.0.60.2880.06920.00
7.0.50.1930.06720.08
7.0.40.0200.05920.08
7.0.30.2170.05220.11
7.0.20.2570.06620.03
7.0.10.1010.06820.07
7.0.00.1320.06920.10

preferences:
54.64 ms | 401 KiB | 5 Q