3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['things', 'stuff']; foreach ($a as $item) { // just iteratin' } var_dump($item);

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.0060.00318.28
8.3.120.0090.00019.01
8.3.110.0060.00316.38
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0100.01016.75
8.3.60.0120.00318.43
8.3.50.0050.01218.22
8.3.40.0100.00618.64
8.3.30.0060.00918.77
8.3.20.0040.00421.96
8.3.10.0000.00823.62
8.3.00.0000.00823.63
8.2.250.0140.00418.39
8.2.240.0120.00617.03
8.2.230.0000.00820.94
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0060.01216.58
8.2.180.0110.00625.92
8.2.170.0120.00818.68
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00018.63
8.2.110.0090.00320.99
8.2.100.0040.00817.84
8.2.90.0030.00617.47
8.2.80.0000.01018.60
8.2.70.0050.00317.63
8.2.60.0040.00417.50
8.2.50.0000.00817.63
8.2.40.0000.00719.52
8.2.30.0040.00419.12
8.2.20.0070.00018.10
8.2.10.0040.00419.32
8.2.00.0040.00419.30
8.1.300.0060.00917.70
8.1.290.0090.00018.88
8.1.280.0090.00625.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00724.01
8.1.230.0090.00320.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.52
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0060.00318.64
8.1.160.0070.00018.91
8.1.150.0050.00318.88
8.1.140.0000.00720.76
8.1.130.0000.00717.41
8.1.120.0000.00717.30
8.1.110.0030.00617.28
8.1.100.0000.00817.45
8.1.90.0040.00417.49
8.1.80.0040.00417.46
8.1.70.0000.00717.40
8.1.60.0000.00817.55
8.1.50.0030.00617.42
8.1.40.0040.00417.40
8.1.30.0030.00617.65
8.1.20.0040.00417.65
8.1.10.0070.00017.35
8.1.00.0000.00717.28
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00518.36
8.0.270.0030.00316.77
8.0.260.0030.00516.80
8.0.250.0000.00716.92
8.0.240.0040.00416.85
8.0.230.0040.00416.87
8.0.220.0070.00016.79
8.0.210.0040.00416.85
8.0.200.0040.00416.98
8.0.190.0040.00416.91
8.0.180.0000.00816.81
8.0.170.0030.00616.79
8.0.160.0040.00416.90
8.0.150.0070.00416.75
8.0.140.0080.00016.78
8.0.130.0050.00013.33
8.0.120.0000.00816.91
8.0.110.0000.00816.93
8.0.100.0040.00416.79
8.0.90.0070.00016.72
8.0.80.0070.01116.91
8.0.70.0040.00416.88
8.0.60.0070.00016.84
8.0.50.0040.00416.77
8.0.30.0070.01117.00
8.0.20.0060.01317.40
8.0.10.0000.00717.02
8.0.00.0100.01216.76
7.4.330.0020.00215.55
7.4.320.0000.00616.50
7.4.300.0030.00316.55
7.4.290.0030.00316.41
7.4.280.0070.00016.64
7.4.270.0040.00416.52
7.4.260.0030.00316.59
7.4.250.0050.00316.37
7.4.240.0040.00416.50
7.4.230.0000.00816.49
7.4.220.0030.00316.62
7.4.210.0070.00816.56
7.4.200.0000.00716.47
7.4.160.0070.00916.47
7.4.140.0090.01217.86
7.4.130.0140.01116.39
7.4.120.0160.00716.50
7.4.110.0070.01016.56
7.4.100.0180.00616.64
7.4.90.0040.01316.53
7.4.80.0080.00819.39
7.4.70.0120.00616.34
7.4.60.0150.00316.46
7.4.50.0060.00916.27
7.4.40.0100.00716.42
7.4.00.0130.00314.83
7.3.330.0050.00013.14
7.3.320.0000.00513.06
7.3.310.0000.00716.41
7.3.300.0040.00416.11
7.3.290.0000.00716.29
7.3.280.0060.01016.31
7.3.260.0140.00516.49
7.3.240.0120.00716.38
7.3.230.0090.01016.24
7.3.210.0130.00616.34
7.3.200.0130.01316.40
7.3.190.0100.00816.25
7.3.180.0080.00816.52
7.3.170.0130.00716.27
7.3.160.0150.00616.40
7.3.10.1150.00714.78
7.3.00.0860.01014.85
7.2.330.0100.00716.40
7.2.320.0030.01316.66
7.2.310.0090.00616.64
7.2.300.0040.01316.67
7.2.290.0120.00616.66
7.2.130.1130.00615.10
7.2.120.1000.00815.08
7.2.110.0950.00915.05
7.2.100.1060.00715.09
7.2.90.1000.00815.08
7.2.80.0840.00615.18
7.2.70.0760.00815.14
7.2.60.0860.00815.15
7.2.50.1050.00615.14
7.2.40.0880.00815.14
7.2.30.0700.01015.02
7.2.20.0960.00814.94
7.2.10.0880.00815.05
7.2.00.0660.00615.09
7.1.250.0840.00913.98

preferences:
32.01 ms | 406 KiB | 6 Q