3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("f_name" => true, "l_name" => true, "full_name" => true); $strenght=0; Foreach($arr as $var){ if($var) $strenght = $strenght+2; } Echo $strenght;

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.0180.00616.38
8.3.60.0110.00318.43
8.3.50.0080.01021.95
8.3.40.0190.00318.88
8.3.30.0110.00418.75
8.3.20.0000.00720.17
8.3.10.0000.00821.76
8.3.00.0080.00019.12
8.2.190.0040.01116.58
8.2.180.0100.00718.16
8.2.170.0070.00722.96
8.2.160.0070.00722.26
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00720.52
8.2.120.0040.00426.35
8.2.110.0050.00520.35
8.2.100.0040.00817.93
8.2.90.0050.00319.26
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0000.00720.60
8.2.30.0040.00419.12
8.2.20.0040.00417.59
8.2.10.0040.00418.17
8.2.00.0040.00418.01
8.1.280.0070.00725.92
8.1.270.0040.01123.80
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00320.95
8.1.230.0110.00017.66
8.1.220.0040.00417.91
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00818.58
8.1.160.0000.00722.00
8.1.150.0040.00418.80
8.1.140.0040.00417.43
8.1.130.0030.00317.60
8.1.120.0000.00717.35
8.1.110.0040.00417.34
8.1.100.0020.00517.38
8.1.90.0040.00417.43
8.1.80.0000.00717.46
8.1.70.0030.00517.34
8.1.60.0040.00417.46
8.1.50.0080.00017.57
8.1.40.0090.00017.50
8.1.30.0080.00017.62
8.1.20.0050.00217.65
8.1.10.0000.00817.46
8.1.00.0040.00417.44
8.0.300.0020.00718.77
8.0.290.0000.00716.62
8.0.280.0000.00718.42
8.0.270.0030.00316.81
8.0.260.0070.00017.25
8.0.250.0000.00717.02
8.0.240.0040.00416.79
8.0.230.0070.00016.98
8.0.220.0040.00416.93
8.0.210.0040.00416.79
8.0.200.0030.00316.91
8.0.190.0000.00716.89
8.0.180.0000.00716.91
8.0.170.0000.00916.93
8.0.160.0000.00716.87
8.0.150.0040.00416.71
8.0.140.0050.00316.85
8.0.130.0050.00013.32
8.0.120.0000.00816.91
8.0.110.0050.00316.86
8.0.100.0040.00416.79
8.0.90.0000.00816.88
8.0.80.0030.01216.82
8.0.70.0030.00516.99
8.0.60.0070.00016.87
8.0.50.0030.00516.82
8.0.30.0090.01017.37
8.0.20.0140.00617.40
8.0.10.0030.00417.12
8.0.00.0070.01816.88
7.4.330.0060.00015.08
7.4.320.0060.00016.64
7.4.300.0000.00616.42
7.4.290.0070.00016.55
7.4.280.0040.00416.38
7.4.270.0030.00316.46
7.4.260.0020.00516.57
7.4.250.0050.00216.48
7.4.240.0000.00716.48
7.4.230.0040.00416.40
7.4.220.0040.01516.57
7.4.210.0080.01116.53
7.4.200.0030.00316.58
7.4.160.0030.01316.46
7.4.150.0100.00817.40
7.4.140.0110.00617.86
7.4.130.0090.00816.54
7.4.120.0130.00516.46
7.4.110.0100.01316.39
7.4.100.0060.01016.37
7.4.90.0030.01316.41
7.4.80.0110.00819.39
7.4.70.0080.00816.48
7.4.60.0090.01016.67
7.4.50.0100.00216.13
7.4.40.0080.00816.46
7.4.30.0070.01616.50
7.4.00.0090.00914.87
7.3.330.0000.00513.15
7.3.320.0020.00213.06
7.3.310.0030.00316.22
7.3.300.0070.00016.11
7.3.290.0070.00716.29
7.3.280.0050.01216.27
7.3.270.0100.01017.40
7.3.260.0130.00816.49
7.3.250.0080.00916.33
7.3.240.0120.00916.44
7.3.230.0030.01616.68
7.3.210.0130.00916.30
7.3.200.0040.01516.36
7.3.190.0090.00616.40
7.3.180.0110.01116.35
7.3.170.0120.00316.59
7.3.160.0110.01116.51
7.2.330.0120.00616.44
7.2.320.0140.00916.56
7.2.310.0100.01016.45
7.2.300.0070.01116.78
7.2.290.0130.01016.38
7.2.60.0030.01017.05
7.2.00.0110.00419.51
7.1.200.0040.00415.87
7.1.70.0070.00717.09
7.1.60.0040.00819.87
7.1.00.0030.07722.54
7.0.200.0030.00715.01
7.0.70.0770.05719.88
7.0.60.0670.06320.00
7.0.50.0730.08020.32
7.0.40.0730.08320.39
7.0.30.0970.05020.38
7.0.20.0730.06720.30
7.0.10.0870.05320.43
7.0.00.0830.08020.34
5.6.280.0000.07721.11
5.6.220.0800.08020.56
5.6.210.0630.06320.74
5.6.200.0700.05721.09
5.6.190.0700.08721.00
5.6.180.0570.06721.07
5.6.170.0670.05321.16
5.6.160.0670.07321.07
5.6.150.0700.06021.11
5.6.140.0500.07721.04
5.6.130.0830.08021.06
5.6.120.0070.07021.06
5.6.110.0430.06321.11
5.6.100.0700.05320.97
5.6.90.0730.05720.98
5.6.80.0600.06320.43
5.6.70.0700.05020.45
5.6.60.0770.05720.44
5.6.50.0770.07320.45
5.6.40.0530.06720.41
5.6.30.0630.07020.48
5.6.20.0770.08020.54
5.6.10.0630.05720.42
5.6.00.0670.06320.45
5.5.360.0700.05720.41
5.5.350.0770.05320.46
5.5.340.0730.06320.85
5.5.330.0800.07720.92
5.5.320.0600.06020.84
5.5.310.0600.07320.93
5.5.300.0800.05320.91
5.5.290.0730.06320.81
5.5.280.0070.06720.91
5.5.270.0730.07720.96
5.5.260.0600.06320.83
5.5.250.0600.06320.72
5.5.240.0670.06020.08
5.5.230.0900.06720.21
5.5.220.0830.06020.31
5.5.210.0600.05020.31
5.5.200.0630.06320.24
5.5.190.0770.05720.28
5.5.180.0700.06320.26
5.5.160.0700.05020.23
5.5.150.0700.05320.18
5.5.140.0770.06720.16
5.5.130.0900.06020.16
5.5.120.0630.06720.26
5.5.110.0670.06020.23
5.5.100.0700.05019.97
5.5.90.0730.04720.14
5.5.80.0630.07020.14
5.5.70.0630.06320.15
5.5.60.0770.06320.20
5.5.50.1000.07020.07
5.5.40.0700.05320.14
5.5.30.0730.05720.06
5.5.20.0730.04720.10
5.5.10.0730.05320.17
5.5.00.0730.05320.01

preferences:
27.81 ms | 401 KiB | 5 Q