3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row=array('username'=>'user1','password'=>'testpass','username'=>'user2','password'=>'testpass2'); foreach ($row as $rows){ echo $rows; } ?>

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.40.0070.01018.76
8.3.30.0080.00619.11
8.3.20.0050.00320.09
8.3.10.0040.00422.05
8.3.00.0040.00422.44
8.2.170.0110.00422.96
8.2.160.0130.00319.26
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0110.00426.16
8.2.120.0040.00419.83
8.2.110.0030.00622.10
8.2.100.0060.00618.22
8.2.90.0030.00619.02
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0060.00317.99
8.2.50.0000.00718.07
8.2.40.0120.00017.91
8.2.30.0040.00418.01
8.2.20.0050.00217.52
8.2.10.0030.00517.67
8.2.00.0040.00417.55
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.70
8.1.230.0080.00419.16
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.40
8.1.180.0030.00618.70
8.1.170.0040.00418.65
8.1.160.0030.00522.00
8.1.150.0080.00018.61
8.1.140.0050.00317.34
8.1.130.0030.00317.72
8.1.120.0030.00317.47
8.1.110.0000.00917.38
8.1.100.0040.00417.46
8.1.90.0030.00317.44
8.1.80.0000.00717.46
8.1.70.0000.00717.47
8.1.60.0030.00517.56
8.1.50.0080.00017.41
8.1.40.0000.00717.52
8.1.30.0040.00417.51
8.1.20.0040.00417.63
8.1.10.0000.00717.36
8.1.00.0040.00417.42
8.0.300.0050.00218.77
8.0.290.0000.00717.17
8.0.280.0000.00718.44
8.0.270.0030.00317.25
8.0.260.0080.00016.74
8.0.250.0000.00716.98
8.0.240.0040.00416.88
8.0.230.0030.00316.86
8.0.220.0030.00316.86
8.0.210.0000.00816.84
8.0.200.0030.00316.83
8.0.190.0000.00716.93
8.0.180.0050.00216.93
8.0.170.0000.00816.84
8.0.160.0070.00016.76
8.0.150.0030.00516.86
8.0.140.0040.00416.90
8.0.130.0000.00613.39
8.0.120.0040.00416.72
8.0.110.0050.00216.92
8.0.100.0000.00716.74
8.0.90.0070.00016.89
8.0.80.0060.00916.83
8.0.70.0040.00416.72
8.0.60.0060.00316.75
8.0.50.0070.00016.90
8.0.30.0060.01216.89
8.0.20.0050.01717.40
8.0.10.0000.00716.87
8.0.00.0090.00916.75
7.4.330.0020.00215.00
7.4.320.0000.00616.57
7.4.300.0000.00616.39
7.4.290.0030.00316.51
7.4.280.0030.00316.48
7.4.270.0030.00316.42
7.4.260.0000.00716.61
7.4.250.0040.00416.57
7.4.240.0000.00716.58
7.4.230.0060.00016.57
7.4.220.0160.01016.49
7.4.210.0090.00716.63
7.4.200.0040.00416.68
7.4.190.0000.00716.44
7.4.160.0110.00416.45
7.4.150.0160.00317.40
7.4.140.0090.01017.86
7.4.130.0050.01416.50
7.4.120.0060.01116.51
7.4.110.0060.01116.34
7.4.100.0100.00716.42
7.4.90.0140.00516.53
7.4.80.0070.01419.39
7.4.70.0130.00316.46
7.4.60.0030.01416.52
7.4.50.0070.00016.29
7.4.40.0030.01322.77
7.4.30.0150.00916.46
7.4.00.0050.01214.94
7.3.330.0070.00013.16
7.3.320.0050.00012.97
7.3.310.0070.00016.21
7.3.300.0060.00016.23
7.3.290.0000.01416.23
7.3.280.0100.00616.23
7.3.270.0060.01117.40
7.3.260.0140.00616.51
7.3.250.0150.00516.38
7.3.240.0110.00616.30
7.3.230.0100.00716.39
7.3.210.0030.01316.59
7.3.200.0030.01419.39
7.3.190.0120.00916.36
7.3.180.0030.02016.41
7.3.170.0100.00716.54
7.3.160.0120.00916.20
7.3.120.0100.00714.87
7.3.110.0060.01214.56
7.3.100.0060.00914.82
7.3.90.0030.00714.81
7.3.80.0040.01214.75
7.3.70.0060.00614.98
7.3.60.0100.00314.82
7.3.50.0090.00614.83
7.3.40.0070.00714.80
7.3.30.0000.01514.96
7.3.20.0130.00316.65
7.3.10.0070.00716.58
7.3.00.0150.00316.55
7.2.330.0160.00316.60
7.2.320.0090.00616.55
7.2.310.0120.00616.59
7.2.300.0160.00016.54
7.2.290.0100.00616.57
7.2.250.0040.01414.94
7.2.240.0030.01615.13
7.2.230.0060.00914.92
7.2.220.0040.01215.18
7.2.210.0090.00314.98
7.2.200.0000.01315.07
7.2.190.0000.01715.17
7.2.180.0060.01214.91
7.2.170.0070.00714.98
7.2.00.0060.00619.07
7.1.330.0100.00715.95
7.1.320.0000.01515.48
7.1.310.0030.00715.86
7.1.300.0000.01815.69
7.1.290.0150.00015.62
7.1.280.0110.00415.59
7.1.270.0000.01815.80
7.1.260.0140.00415.63
7.1.100.0080.00317.86
7.1.70.0090.00017.14
7.1.60.0140.01019.82
7.1.50.0060.00616.89
7.1.00.0030.06322.35
7.0.200.0000.00716.81
7.0.140.0070.07021.95
7.0.60.0100.08020.09
7.0.50.0030.05017.81
7.0.40.0100.03720.12
7.0.30.0470.06720.17
7.0.20.0270.07320.16
7.0.10.0000.04320.09
7.0.00.0130.06320.18
5.6.280.0070.07020.89
5.6.210.0100.07320.53
5.6.200.0070.03718.16
5.6.190.0030.09320.60
5.6.180.0230.05320.41
5.6.170.0130.04320.61
5.6.160.0000.04720.41
5.6.150.0030.09018.07
5.6.140.0070.05318.15
5.6.130.0100.07318.10
5.6.120.0130.06721.02
5.6.110.0000.07721.00
5.6.100.0030.04320.99
5.6.90.0070.05321.02
5.6.80.0000.04720.42
5.6.70.4630.04020.37
5.5.350.0170.07320.52
5.5.340.0030.07317.90
5.5.330.0030.05020.43
5.5.320.0300.07320.24
5.5.310.0430.07020.28
5.5.300.0100.05717.87
5.5.290.0070.07717.93
5.5.280.0000.08320.84
5.5.270.0100.07720.86
5.5.260.0070.08720.75
5.5.250.0100.04320.68
5.5.240.0270.05720.15
5.4.450.0800.07019.14
5.4.440.0770.04719.11
5.4.430.0600.06719.41
5.4.420.0130.05319.63
5.4.410.0630.06719.36
5.4.400.0630.06018.77
5.4.390.0400.06318.46
5.4.380.0270.05718.68
5.4.370.0130.05718.69
5.4.360.0100.05718.74
5.4.350.0200.04718.65
5.4.340.0130.05318.59
5.4.320.0070.03512.45
5.4.310.0090.03512.45
5.4.300.0020.04412.45
5.4.290.0100.03712.45
5.4.280.0050.03912.35
5.4.270.0100.04412.34
5.4.260.0100.06018.94
5.4.250.0100.05318.87
5.4.240.0030.06318.94
5.4.230.0130.06718.94
5.4.220.0070.07018.99
5.4.210.0070.06718.64
5.4.200.0030.05718.88
5.4.190.0100.06019.02
5.4.180.0230.06718.92
5.4.170.0070.05318.80
5.4.160.0200.05718.91
5.4.150.0070.06018.98
5.4.140.0100.04716.29
5.4.130.0070.04716.26
5.4.120.0030.07016.28
5.4.110.0070.07316.35
5.4.100.0130.05016.41
5.4.90.0100.04316.29
5.4.80.0070.05716.36
5.4.70.0070.05716.43
5.4.60.0000.08016.47
5.4.50.0070.06716.32
5.4.40.0070.05316.29
5.4.30.0100.06016.46
5.4.20.0100.05316.32
5.4.10.0070.05716.36
5.4.00.0070.05315.88
5.3.290.0100.05212.80
5.3.280.0100.06314.74
5.3.270.0030.07014.62
5.3.260.0100.07314.75
5.3.250.0170.06014.48
5.3.240.0100.07014.62
5.3.230.0170.06314.75
5.3.220.0100.07014.55
5.3.210.0030.07314.33
5.3.200.0030.05314.57
5.3.190.0070.06714.48
5.3.180.0030.05314.56
5.3.170.0030.07014.33
5.3.160.0030.05314.40
5.3.150.0130.06714.57
5.3.140.0130.06014.59
5.3.130.0270.05314.32
5.3.120.0030.06014.47
5.3.110.0000.06014.44
5.3.100.0130.04713.90
5.3.90.0070.07013.87
5.3.80.0070.07013.93
5.3.70.0170.05713.87
5.3.60.0070.04714.01
5.3.50.0100.06313.83
5.3.40.0130.05714.07
5.3.30.0070.04713.60
5.3.20.0070.06313.70
5.3.10.0030.06713.48
5.3.00.0030.05713.68
5.2.170.0130.05011.15
5.2.160.0030.04711.04
5.2.150.0000.06011.06
5.2.140.0130.05311.15
5.2.130.0070.04011.02
5.2.120.0070.05011.19
5.2.110.0100.04711.11
5.2.100.0070.05711.02
5.2.90.0000.04711.21
5.2.80.0070.06010.99
5.2.70.0000.04711.10
5.2.60.0070.05711.06
5.2.50.0070.06311.05
5.2.40.0030.04710.91
5.2.30.0070.05310.98
5.2.20.0130.04310.89
5.2.10.0130.03710.86
5.2.00.0100.05010.89
5.1.60.0100.04010.05
5.1.50.0030.05010.02
5.1.40.0100.04310.02
5.1.30.0000.04010.31
5.1.20.0070.03310.23
5.1.10.0000.05310.00
5.1.00.0170.03310.11
5.0.50.0030.0308.59
5.0.40.0000.0308.46
5.0.30.0030.0508.26
5.0.20.0070.0308.16
5.0.10.0030.0308.25
5.0.00.0000.0478.22
4.4.90.0070.0177.25
4.4.80.0030.0277.25
4.4.70.0030.0207.25
4.4.60.0030.0277.25
4.4.50.0030.0207.25
4.4.40.0030.0437.25
4.4.30.0030.0277.25
4.4.20.0030.0307.25
4.4.10.0000.0337.25
4.4.00.0100.0337.25
4.3.110.0030.0207.25
4.3.100.0030.0277.25
4.3.90.0000.0237.25
4.3.80.0030.0337.25
4.3.70.0030.0207.25
4.3.60.0070.0177.25
4.3.50.0070.0237.25
4.3.40.0030.0337.25
4.3.30.0030.0307.25
4.3.20.0030.0207.25
4.3.10.0000.0307.25
4.3.00.0170.0206.95

preferences:
48.89 ms | 400 KiB | 5 Q