3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1=array("anu","jinu"); $array2=array("1","2","0"); $cnt1 = count($array1); $cnt2 = count($array2); if($cnt1>$cnt2) $array1=array_slice($array1, 0, $cnt2); elseif($cnt2>$cnt1) $array2=array_slice($array2, 0, $cnt1); $arr = array_combine($array1,$array2); print_r($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.5.10.0090.00916.59
8.5.00.0110.01019.91
8.4.150.0030.00014.05
8.4.140.0140.00717.63
8.4.130.0070.00917.98
8.4.120.0090.00820.48
8.4.110.0140.00618.95
8.4.100.0130.00817.43
8.4.90.0080.01020.40
8.4.80.0120.00718.93
8.4.70.0070.01218.77
8.4.60.0050.00318.61
8.4.50.0080.00720.22
8.4.40.0130.00619.14
8.4.30.0070.01317.60
8.4.20.0160.00619.45
8.4.10.0060.00317.68
8.3.280.0140.00518.30
8.3.270.0110.00816.55
8.3.260.0100.00716.61
8.3.250.0110.00618.85
8.3.240.0150.00416.57
8.3.230.0130.00616.86
8.3.220.0050.00319.09
8.3.210.0100.00816.73
8.3.200.0060.00316.47
8.3.190.0030.00717.04
8.3.180.0090.00918.86
8.3.170.0110.00718.73
8.3.160.0070.01017.13
8.3.150.0060.01319.03
8.3.140.0110.00418.82
8.3.130.0050.00318.43
8.3.120.0100.00018.80
8.3.110.0030.00618.43
8.3.100.0000.00916.73
8.3.90.0030.00626.77
8.3.80.0060.00618.31
8.3.70.0070.01416.58
8.3.60.0070.00718.30
8.3.50.0070.00918.25
8.3.40.0090.00618.73
8.3.30.0150.00018.58
8.3.20.0080.00020.16
8.3.10.0070.00021.87
8.3.00.0000.00821.91
8.2.290.0130.00716.79
8.2.280.0110.00718.07
8.2.270.0040.01418.79
8.2.260.0090.00917.15
8.2.250.0040.00416.77
8.2.240.0050.01118.79
8.2.230.0030.00620.94
8.2.220.0050.00524.06
8.2.210.0110.00726.77
8.2.200.0110.00016.38
8.2.190.0070.00718.43
8.2.180.0110.00725.92
8.2.170.0060.01222.96
8.2.160.0070.00721.07
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0060.00326.16
8.2.110.0090.00021.18
8.2.100.0080.00417.72
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0070.00020.49
8.2.30.0000.00920.97
8.2.20.0040.00418.13
8.2.10.0070.00018.11
8.2.00.0040.00417.99
8.1.330.0130.00816.09
8.1.320.0130.00716.20
8.1.310.0100.01018.52
8.1.300.0130.00617.77
8.1.290.0110.00030.84
8.1.280.0140.00725.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0040.00820.92
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0050.00517.36
8.1.190.0030.00519.01
8.1.180.0080.00018.10
8.1.170.0060.00318.56
8.1.160.0000.00718.90
8.1.150.0040.00418.85
8.1.140.0000.00819.06
8.1.130.0040.00418.73
8.1.120.0030.00317.48
8.1.110.0050.00317.41
8.1.100.0030.00317.49
8.1.90.0040.00417.46
8.1.80.0030.00717.48
8.1.70.0000.00717.42
8.1.60.0040.00417.50
8.1.50.0080.00417.56
8.1.40.0090.00017.52
8.1.30.0040.00417.54
8.1.20.0000.00817.61
8.1.10.0050.00317.48
8.1.00.0000.00717.40
8.0.300.0000.00918.77
8.0.290.0040.00416.63
8.0.280.0070.00018.42
8.0.270.0030.00316.77
8.0.260.0000.00618.37
8.0.250.0070.00016.89
8.0.240.0000.01116.95
8.0.230.0030.00316.77
8.0.220.0000.00716.82
8.0.210.0070.00016.78
8.0.200.0020.00516.90
8.0.190.0000.00816.77
8.0.180.0040.00416.85
8.0.170.0030.00316.94
8.0.160.0040.00416.93
8.0.150.0000.00716.71
8.0.140.0050.00316.88
8.0.130.0050.00013.27
8.0.120.0050.00216.85
8.0.110.0040.00416.88
8.0.100.0070.00016.82
8.0.90.0000.00716.95
8.0.80.0070.00716.88
8.0.70.0130.00416.82
8.0.60.0080.00816.82
8.0.50.0070.01416.78
8.0.30.0100.00716.99
8.0.20.0110.00817.30
8.0.10.0140.00516.99
8.0.00.0110.00816.86
7.4.330.0050.00015.55
7.4.320.0030.00316.60
7.4.300.0030.00316.50
7.4.290.0030.00316.61
7.4.280.0050.00316.51
7.4.270.0030.00316.50
7.4.260.0080.00316.47
7.4.250.0030.00316.45
7.4.240.0040.00416.49
7.4.230.0080.00016.62
7.4.220.0070.01116.44
7.4.210.0090.00616.55
7.4.200.0060.01516.45
7.4.190.0120.00816.52
7.4.180.0140.00316.60
7.4.160.0090.01016.56
7.4.150.0080.00816.93
7.4.140.0090.00917.57
7.4.130.0090.01316.38
7.4.120.0080.01216.49
7.4.110.0140.00616.49
7.4.100.0090.00916.51
7.4.90.0100.00916.53
7.4.80.0060.01217.95
7.4.70.0080.01316.50
7.4.60.0120.00816.29
7.4.50.0020.01616.43
7.4.40.0110.00616.47
7.4.30.0120.00716.30
7.4.20.0090.00916.40
7.4.10.0070.01115.52
7.4.00.0060.00815.39
7.3.330.0000.00513.13
7.3.320.0060.00013.17
7.3.310.0030.00316.16
7.3.300.0030.00316.04
7.3.290.0110.00516.15
7.3.280.0070.00916.18
7.3.270.0110.00416.77
7.3.260.0090.01116.27
7.3.250.0100.00616.25
7.3.240.0110.00616.18
7.3.230.0130.00516.20
7.3.220.0070.01316.16
7.3.210.0090.01116.26
7.3.200.0100.00816.15
7.3.190.0100.00716.17
7.3.180.0070.01416.27
7.3.170.0070.00816.27
7.3.160.0120.00516.14
7.3.150.0090.01016.10
7.3.140.0000.01816.18
7.3.130.0060.01115.47
7.3.120.0100.00915.08
7.3.110.0090.00715.09
7.3.100.0080.00815.13
7.3.90.0040.01015.38
7.3.80.0040.01015.07
7.3.70.0030.00915.08
7.3.60.0030.01215.27
7.3.50.0080.00715.14
7.3.40.0120.00615.35
7.3.30.0090.00715.32
7.3.20.2540.01015.82
7.3.10.0180.00915.93
7.3.00.0070.00916.05
7.2.340.0290.00216.31
7.2.330.0160.00916.49
7.2.320.0160.01316.46
7.2.310.0130.01116.59
7.2.300.0140.01316.53
7.2.290.0190.00516.43
7.2.280.0180.01116.27
7.2.270.0160.01516.28
7.2.260.0160.00815.76
7.2.250.0160.00915.74
7.2.240.0100.01315.38
7.2.230.0100.01015.24
7.2.220.0120.00815.28
7.2.210.0060.01115.42
7.2.200.0080.01415.46
7.2.190.0120.01015.43
7.2.180.0120.00815.44
7.2.170.0080.01115.40
7.2.160.0090.00915.35
7.2.150.2210.00916.16
7.2.140.0150.01016.21
7.2.130.0120.00916.19
7.2.120.0100.00816.18
7.2.110.0620.00616.17
7.2.100.0390.00916.31
7.2.90.0170.00716.13
7.2.80.0460.00716.26
7.2.70.0110.00916.26
7.2.60.0480.01016.38
7.2.50.0160.00716.29
7.2.40.0220.00916.24
7.2.30.0180.00716.20
7.2.20.0320.00716.30
7.2.10.0110.01116.29
7.2.00.0820.01016.30
7.1.330.0090.00915.78
7.1.320.0250.00815.68
7.1.310.0050.01415.72
7.1.300.0100.01115.70
7.1.290.0110.01015.77
7.1.280.0120.00715.74
7.1.270.0130.00915.69
7.1.260.0130.00815.61
7.1.250.0140.00715.16
7.1.240.0360.01015.06
7.1.230.0150.01014.97
7.1.220.0470.00715.04
7.1.210.0130.00815.01
7.1.200.0140.00615.28
7.1.190.0140.00615.02
7.1.180.0300.00615.06
7.1.170.0130.00814.92
7.1.160.0140.01215.01
7.1.150.0250.00915.09
7.1.140.0150.01015.10
7.1.130.1080.00714.92
7.1.120.0800.00915.37
7.1.110.0990.00615.29
7.1.100.0730.01615.19
7.1.90.0560.00815.18
7.1.80.0500.01115.41
7.1.70.0630.01015.01
7.1.60.0590.00619.64
7.1.50.0530.01119.58
7.1.40.0570.01219.31
7.1.30.0610.00719.44
7.1.20.0530.01219.46
7.1.10.0660.00915.01
7.1.00.0510.00514.97
7.0.330.0210.00814.34
7.0.320.0200.00614.28
7.0.310.0970.00914.30
7.0.300.1250.01014.27
7.0.290.0340.00914.32
7.0.280.0140.01214.35
7.0.270.1310.01014.24
7.0.260.1020.01114.96
7.0.250.1190.00914.72
7.0.240.1160.01114.63
7.0.230.0630.00614.69
7.0.220.0570.00814.77
7.0.210.0700.00714.43
7.0.200.0660.00614.57
7.0.190.1690.00814.64
7.0.180.0740.00914.27
7.0.170.0610.01314.32
7.0.160.0880.01114.33
7.0.150.0570.00414.31
7.0.140.0570.01114.38
7.0.130.0740.00714.39
7.0.120.0640.01014.48
7.0.110.0840.00514.41
7.0.100.0710.00714.36
7.0.90.0740.00814.31
7.0.80.0670.00814.33
7.0.70.0650.00814.27
7.0.60.0590.00714.36
7.0.50.0740.00514.45
7.0.40.0820.00614.39
7.0.30.0700.00914.54
7.0.20.0730.00514.38
7.0.10.0560.01214.36
7.0.00.0670.00914.37
5.6.400.0100.01315.73
5.6.390.0120.00915.70
5.6.380.0160.00714.91
5.6.370.0120.01215.73
5.6.360.0100.01415.62
5.6.350.0150.01315.68
5.6.340.0230.00315.64
5.6.330.0120.01215.70
5.6.320.0090.01215.64
5.6.310.0000.02015.77
5.6.300.0130.01015.52
5.6.290.0110.01415.58
5.6.280.0120.01215.56
5.6.270.0060.01115.65
5.6.260.0180.01215.63
5.6.250.0150.01215.63
5.6.240.0120.01215.86
5.6.230.0190.00815.99
5.6.220.0160.01215.91
5.6.210.0160.00715.79
5.6.200.0100.01515.80
5.6.190.0120.01516.00
5.6.180.0190.00516.00
5.6.170.0110.01115.96
5.6.160.0090.01315.97
5.6.150.0180.00616.05
5.6.140.0080.01415.73
5.6.130.0150.00715.75
5.6.120.0120.01215.86
5.6.110.0070.01815.79
5.6.100.0100.01015.75
5.6.90.0190.00615.66
5.6.80.0200.00315.61
5.6.70.0140.01015.84
5.6.60.0110.01615.85
5.6.50.0190.00715.69
5.6.40.0110.01515.84
5.6.30.0120.01215.77
5.6.20.0080.01515.73
5.6.10.0090.01415.77
5.6.00.0090.01715.83

preferences:
244.1 ms | 403 KiB | 5 Q