3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var_from_loop = "true,true,true,false,false"; $arr = explode("," , $var_from_loop); print_r(array_count_values($arr));

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.0000.00718.18
8.3.120.0090.00020.38
8.3.110.0110.00420.94
8.3.100.0000.00918.46
8.3.90.0070.01326.77
8.3.80.0060.00318.30
8.3.70.0070.00716.38
8.3.60.0090.00618.43
8.3.50.0100.00518.19
8.3.40.0120.00618.53
8.3.30.0110.00318.55
8.3.20.0090.00020.66
8.3.10.0040.00421.60
8.3.00.0080.00020.84
8.2.250.0070.00716.53
8.2.240.0000.01217.14
8.2.230.0090.00022.58
8.2.220.0090.00024.06
8.2.210.0110.00426.77
8.2.200.0030.00616.25
8.2.190.0070.00716.58
8.2.180.0130.00616.38
8.2.170.0070.00722.96
8.2.160.0100.00722.25
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00719.16
8.2.110.0090.00021.13
8.2.100.0030.00919.51
8.2.90.0060.00317.91
8.2.80.0040.00417.97
8.2.70.0090.00017.64
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0040.00419.24
8.2.30.0070.00019.05
8.2.20.0040.00418.00
8.2.10.0000.00819.23
8.2.00.0050.00318.28
8.1.300.0030.00618.29
8.1.290.0000.00930.84
8.1.280.0210.00025.92
8.1.270.0030.00624.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.75
8.1.230.0070.00422.77
8.1.220.0000.00917.77
8.1.210.0000.00819.00
8.1.200.0030.00617.22
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0030.00518.66
8.1.160.0000.00818.82
8.1.150.0050.00218.75
8.1.140.0040.00418.94
8.1.130.0080.00017.38
8.1.120.0000.00717.43
8.1.110.0000.00717.37
8.1.100.0020.00517.40
8.1.90.0040.00417.28
8.1.80.0070.00017.32
8.1.70.0070.00017.39
8.1.60.0000.00717.52
8.1.50.0040.00417.42
8.1.40.0080.00017.43
8.1.30.0040.00417.47
8.1.20.0070.00017.55
8.1.10.0050.00217.50
8.1.00.0080.00017.40
8.0.300.0050.00219.63
8.0.290.0060.00316.63
8.0.280.0000.00818.39
8.0.270.0000.00717.18
8.0.260.0030.00316.73
8.0.250.0000.00816.88
8.0.240.0030.00516.88
8.0.230.0020.00516.79
8.0.220.0000.00716.79
8.0.210.0030.00316.68
8.0.200.0040.00416.80
8.0.190.0000.00716.73
8.0.180.0000.00716.71
8.0.170.0040.00416.84
8.0.160.0030.00516.84
8.0.150.0040.00416.83
8.0.140.0070.00016.71
8.0.130.0070.00013.31
8.0.120.0040.00416.81
8.0.110.0040.00416.63
8.0.100.0070.00016.71
8.0.90.0040.00416.71
8.0.80.0000.01716.80
8.0.70.0040.00416.66
8.0.60.0000.00716.68
8.0.50.0050.00216.74
8.0.30.0130.01317.09
8.0.20.0130.00617.16
8.0.10.0040.00416.95
8.0.00.0100.01216.75
7.4.330.0000.00516.73
7.4.320.0060.00016.42
7.4.300.0000.00716.39
7.4.290.0000.00616.42
7.4.280.0040.00416.28
7.4.270.0030.00316.57
7.4.260.0080.00016.55
7.4.250.0040.00416.32
7.4.240.0040.00416.44
7.4.230.0070.00016.37
7.4.220.0050.00316.24
7.4.210.0100.00616.48
7.4.200.0000.00716.27
7.4.160.0090.00716.40
7.4.140.0130.01317.86
7.4.130.0030.01616.37
7.4.120.0080.01216.31
7.4.110.0120.00316.43
7.4.100.0100.00616.34
7.4.90.0070.01016.31
7.4.80.0100.01219.39
7.4.70.0100.00716.64
7.4.60.0140.00416.53
7.4.50.0000.01316.18
7.4.40.0100.00516.52
7.4.10.0040.01415.06
7.4.00.0070.01014.75
7.3.330.0000.00612.97
7.3.320.0000.00613.05
7.3.310.0000.00716.15
7.3.300.0060.00015.96
7.3.290.0070.00016.15
7.3.280.0070.01116.07
7.3.260.0100.00716.29
7.3.240.0080.01016.23
7.3.230.0070.01016.58
7.3.210.0120.00916.27
7.3.200.0100.00616.24
7.3.190.0160.00616.14
7.3.180.0100.00716.28
7.3.170.0110.00616.18
7.3.160.0120.00916.39
7.3.130.0030.01214.57
7.3.120.0040.01214.44
7.3.110.0080.01014.83
7.3.100.0100.00414.68
7.3.90.0050.00714.51
7.3.80.0090.00214.63
7.3.70.0070.00914.51
7.3.60.0050.00914.58
7.3.50.0060.00814.60
7.3.40.0020.00914.72
7.3.30.0070.00914.57
7.3.20.0260.00515.86
7.3.10.0330.00315.96
7.3.00.0260.00615.87
7.2.330.0150.00916.19
7.2.320.0090.00916.32
7.2.310.0080.00816.37
7.2.300.0130.00316.04
7.2.290.0110.01116.26
7.2.260.0060.01215.02
7.2.250.0020.01414.92
7.2.240.0040.01314.80
7.2.230.0030.01314.81
7.2.220.0120.00514.87
7.2.210.0100.00314.94
7.2.200.0060.00714.99
7.2.190.0050.00714.79
7.2.180.0040.00614.86
7.2.170.0060.00814.82
7.2.160.0070.00614.76
7.2.150.0350.00815.82
7.2.140.0380.00715.93
7.2.130.0410.00515.85
7.2.120.0370.00715.83
7.2.110.0360.00815.81
7.2.100.0350.00315.92
7.2.90.0410.01115.65
7.2.80.0420.01515.76
7.2.70.0350.00715.93
7.2.60.0390.00615.74
7.2.50.0350.00615.73
7.2.40.0400.01015.72
7.2.30.0410.00915.84
7.2.20.0330.00815.69
7.2.10.0350.00315.91
7.2.00.0330.00815.98
7.1.330.0120.00215.67
7.1.320.0090.00515.86
7.1.310.0060.00615.66
7.1.300.0040.01015.65
7.1.290.0030.00815.64
7.1.280.0070.00515.65
7.1.270.0250.00714.96
7.1.260.0230.00715.07
7.1.250.0340.01014.80
7.1.240.0070.00415.91
7.1.230.0040.00715.73
7.1.220.0030.00715.55
7.1.210.0070.01115.39
7.1.200.0040.01115.80
7.1.190.0000.01115.54
7.1.180.0030.00915.70
7.1.170.0100.00015.59
7.1.160.0070.00415.80
7.1.150.0030.00715.48
7.1.140.0140.00315.75
7.1.130.0100.00715.61
7.1.120.0060.00615.63
7.1.110.0000.01215.91
7.1.100.0000.01215.47
7.1.90.0000.00815.78
7.1.80.0000.01115.75
7.1.70.0080.00315.85
7.1.60.0080.00815.82
7.1.50.0060.00615.69
7.1.40.0030.01215.91
7.1.30.0090.00615.52
7.1.20.0030.01015.55
7.1.10.0060.00915.76
7.1.00.0030.00515.61

preferences:
62.1 ms | 403 KiB | 5 Q