3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = array("","3","",6,62); var_dump(array_count_values($string)); var_dump($string[""]);

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.60.0040.01116.50
8.3.50.0040.01116.27
8.3.40.0110.00318.83
8.3.30.0100.00618.77
8.3.20.0070.00020.04
8.3.10.0080.00023.70
8.3.00.0030.01019.60
8.2.180.0170.00016.50
8.2.170.0070.01422.96
8.2.160.0130.00020.39
8.2.150.0040.00424.18
8.2.140.0140.00424.66
8.2.130.0090.00019.30
8.2.120.0110.00726.35
8.2.110.0140.00320.81
8.2.100.0040.00818.03
8.2.90.0000.00819.08
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0000.00822.27
8.2.30.0050.00319.12
8.2.20.0000.00817.95
8.2.10.0000.00718.04
8.2.00.0040.00417.99
8.1.280.0000.01525.92
8.1.270.0050.00221.99
8.1.260.0070.01026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.82
8.1.230.0060.00618.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.00
8.1.190.0040.00617.00
8.1.180.0080.00018.10
8.1.170.0000.00818.54
8.1.160.0000.00718.99
8.1.150.0040.00420.62
8.1.140.0030.00519.46
8.1.130.0030.00318.86
8.1.120.0070.00017.43
8.1.110.0000.01117.43
8.1.100.0040.00417.38
8.1.90.0030.00617.42
8.1.80.0020.00517.37
8.1.70.0070.00017.44
8.1.60.0000.00917.47
8.1.50.0000.00717.43
8.1.40.0000.00817.33
8.1.30.0040.00417.57
8.1.20.0050.00217.48
8.1.10.0000.00817.52
8.1.00.0000.00717.52
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.36
8.0.270.0040.00417.17
8.0.260.0060.00016.77
8.0.250.0000.00716.98
8.0.240.0030.00316.84
8.0.230.0050.00516.95
8.0.220.0070.00016.89
8.0.210.0070.00016.88
8.0.200.0070.00016.83
8.0.190.0040.00416.84
8.0.180.0090.00016.86
8.0.170.0040.00416.89
8.0.160.0000.00816.84
8.0.150.0070.00016.70
8.0.140.0040.00416.83
8.0.130.0030.00313.32
8.0.120.0030.00516.96
8.0.110.0030.00316.84
8.0.100.0050.00216.88
8.0.90.0040.00416.72
8.0.80.0110.00716.90
8.0.70.0070.00016.82
8.0.60.0040.00416.79
8.0.50.0040.00416.76
8.0.30.0060.01217.13
8.0.20.0130.00517.40
8.0.10.0090.00016.88
8.0.00.0060.01216.70
7.4.330.0030.00315.55
7.4.320.0030.00316.54
7.4.300.0060.00016.55
7.4.290.0000.00716.34
7.4.280.0030.00616.43
7.4.270.0000.00716.57
7.4.260.0060.00013.14
7.4.250.0040.00416.47
7.4.240.0070.00016.45
7.4.230.0070.00016.48
7.4.220.0320.01016.57
7.4.210.0070.00716.54
7.4.200.0040.00416.57
7.4.160.0080.00816.42
7.4.150.0130.00317.40
7.4.140.0090.00917.86
7.4.130.0130.01016.48
7.4.120.0130.01216.48
7.4.110.0110.00616.46
7.4.100.0030.01616.47
7.4.90.0100.00716.46
7.4.80.0000.02019.39
7.4.70.0070.00916.54
7.4.60.0110.00516.46
7.4.50.0040.00716.07
7.4.40.0120.00416.30
7.4.30.0040.01516.32
7.4.00.0030.01314.80
7.3.330.0050.00013.00
7.3.320.0000.00613.00
7.3.310.0030.00316.33
7.3.300.0030.00316.32
7.3.290.0000.00616.27
7.3.280.0110.00616.23
7.3.270.0090.00917.40
7.3.260.0150.01316.27
7.3.250.0080.01416.49
7.3.240.0080.00916.26
7.3.230.0120.00616.29
7.3.210.0070.01016.19
7.3.200.0040.01216.37
7.3.190.0130.00316.34
7.3.180.0090.00916.30
7.3.170.0140.00316.14
7.3.160.0150.00616.32
7.2.330.0180.00016.42
7.2.320.0040.01216.25
7.2.310.0070.01016.59
7.2.300.0110.01116.50
7.2.290.0000.01516.66
7.2.60.0030.01016.75
7.1.200.0030.01015.76
7.1.70.0090.01117.22
7.1.60.0170.01435.17
7.1.50.0190.00934.94
7.1.40.0140.01434.26
7.1.30.0210.01034.29
7.1.20.0170.02434.52
7.1.10.0070.00716.81
7.1.00.0090.00616.61
7.0.200.0070.01016.85
7.0.190.0000.01216.50
7.0.180.0120.01216.08
7.0.170.0100.00316.08
7.0.160.0030.01216.15
7.0.150.0000.01416.11
7.0.140.0060.00915.99
7.0.130.0030.01016.52
7.0.120.0040.00916.38
7.0.110.0090.01116.16
7.0.100.0060.01516.03
7.0.90.0030.01216.13
7.0.80.0000.01316.03
7.0.70.0000.01916.11
7.0.60.0040.01116.07
7.0.50.0030.01716.18
7.0.40.0070.01316.31
7.0.30.0100.00616.42
7.0.20.0080.00816.40
7.0.10.0090.00616.29
7.0.00.0120.00316.57

preferences:
47.42 ms | 400 KiB | 5 Q