3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'jenny'; $str2 = 'jenny'; $str1chars = array_unique(str_split($str1)); $str2chars = array_unique(str_split($str2)); $matches = array_intersect($str1chars, $str2chars); if(count($str1chars) === count($matches)){ echo "Bingo!"; }else{ echo "Nope :("; }

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.4.120.0130.00620.75
8.4.110.0090.01122.41
8.4.100.0170.00317.77
8.4.90.0160.00518.77
8.4.80.0050.00317.79
8.4.70.0120.01017.86
8.4.60.0100.01018.81
8.4.50.0110.00819.71
8.4.40.0060.01317.79
8.4.30.0190.00020.45
8.4.20.0090.00617.93
8.4.10.0080.00019.66
8.3.250.0120.00618.93
8.3.240.0050.00416.77
8.3.230.0120.00816.72
8.3.220.0120.00416.64
8.3.210.0060.00216.56
8.3.200.0040.00516.48
8.3.190.0100.00817.10
8.3.180.0080.00518.10
8.3.170.0150.00417.28
8.3.160.0140.00319.96
8.3.150.0100.00317.00
8.3.140.0180.00017.09
8.3.130.0090.00016.57
8.3.120.0090.00020.64
8.3.110.0060.00318.38
8.3.100.0040.01120.37
8.3.90.0030.00726.77
8.3.80.0070.00319.36
8.3.70.0100.00718.31
8.3.60.0140.00718.30
8.3.50.0080.00824.49
8.3.40.0040.01218.58
8.3.30.0090.00618.30
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0030.00726.16
8.2.290.0040.00520.70
8.2.280.0170.00518.14
8.2.270.0070.01517.05
8.2.260.0040.00416.60
8.2.250.0040.00420.39
8.2.240.0130.00316.92
8.2.230.0160.00620.94
8.2.220.0130.00724.06
8.2.210.0030.01226.77
8.2.200.0060.00318.88
8.2.190.0180.00318.04
8.2.180.0100.00725.92
8.2.170.0120.00318.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0060.00321.06
8.2.100.0090.00317.84
8.2.90.0040.00417.97
8.2.80.0000.00817.97
8.2.70.0040.00418.04
8.2.60.0040.00418.09
8.2.50.0090.00018.10
8.2.40.0040.00419.37
8.2.30.0000.00719.24
8.2.20.0030.00518.11
8.2.10.0050.00319.21
8.2.00.0070.00019.31
8.1.330.0120.00723.75
8.1.320.0120.00816.34
8.1.310.0080.00518.58
8.1.300.0090.00620.40
8.1.290.0000.01030.84
8.1.280.0120.00325.92
8.1.270.0080.00022.07
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0090.00022.06
8.1.230.0040.00722.66
8.1.220.0080.00017.76
8.1.210.0000.00818.95
8.1.200.0030.00617.34
8.1.190.0090.00017.23
8.1.180.0030.00618.10
8.1.170.0030.00618.44
8.1.160.0040.00419.04
8.1.150.0080.00018.64
8.1.140.0000.00718.87
8.1.130.0070.00021.93
8.1.120.0030.00517.46
8.1.110.0070.00017.40
8.1.100.0000.00717.37
8.1.90.0040.00417.47
8.1.80.0030.00617.35
8.1.70.0070.00017.44
8.1.60.0000.00717.57
8.1.50.0040.00417.52
8.1.40.0070.00317.51
8.1.30.0070.00017.60
8.1.20.0040.00417.63
8.1.10.0070.00017.49
8.1.00.0100.00017.40
8.0.300.0020.00522.03
8.0.290.0050.00316.63
8.0.280.0040.00418.30
8.0.270.0040.00416.80
8.0.260.0030.00520.22
8.0.250.0000.00716.86
8.0.240.0050.00316.94
8.0.230.0070.00016.74
8.0.220.0030.00316.84
8.0.210.0000.00716.74
8.0.200.0070.00016.89
8.0.190.0040.00416.90
8.0.180.0050.00316.86
8.0.170.0030.00616.80
8.0.160.0050.00316.91
8.0.150.0040.00416.80
8.0.140.0070.00016.85
8.0.130.0000.00513.28
8.0.120.0040.00416.85
8.0.110.0020.00516.82
8.0.100.0050.00316.94
8.0.90.0000.00816.95
8.0.80.0080.01016.89
8.0.70.0070.00016.77
8.0.60.0030.00616.76
8.0.50.0000.00816.77
8.0.30.0130.00316.96
8.0.20.0070.01017.00
8.0.10.0120.00616.96
8.0.00.0150.01216.98
7.4.330.0020.00215.55
7.4.320.0030.00316.47
7.4.300.0060.00016.34
7.4.290.0030.00316.45
7.4.280.0040.00416.59
7.4.270.0070.00016.59
7.4.260.0040.00413.34
7.4.250.0040.00416.50
7.4.240.0000.00716.48
7.4.230.0030.00316.59
7.4.220.0050.00216.66
7.4.210.0070.00916.52
7.4.200.0060.00016.42
7.4.150.0140.00316.53
7.4.140.0070.01116.46
7.4.130.0000.01816.54
7.4.120.0120.00816.37
7.4.110.0070.01116.36
7.4.100.0110.01116.29
7.4.90.0090.00916.38
7.4.80.0090.00916.55
7.4.70.0110.00716.45
7.4.60.0080.00816.44
7.4.50.0080.01116.47
7.4.40.0070.01016.23
7.4.30.0070.01116.50
7.4.20.0090.01216.61
7.4.10.0040.01416.39
7.4.00.0060.01216.01
7.3.330.0030.00316.03
7.3.320.0000.00513.24
7.3.310.0030.00316.11
7.3.300.0030.00316.29
7.3.290.0060.00816.27
7.3.270.0040.01316.27
7.3.260.0100.00716.14
7.3.250.0060.01116.38
7.3.240.0170.00016.38
7.3.230.0100.00716.40
7.3.220.0060.01016.42
7.3.210.0110.00716.16
7.3.200.0120.00616.34
7.3.190.0100.00616.23
7.3.180.0070.01016.16
7.3.170.0060.01216.28
7.3.160.0060.01116.35
7.3.150.0160.00316.39
7.3.140.0140.00316.21
7.3.130.0080.00816.33
7.3.120.0130.00316.22
7.3.110.0100.01016.44
7.3.100.0140.00416.46
7.3.90.0040.01416.22
7.3.80.0070.01016.20
7.3.70.0100.00616.38
7.3.60.0070.01016.42
7.3.50.0030.01716.24
7.3.40.0060.01216.31
7.3.30.0070.01016.05
7.3.20.0100.01016.48
7.3.10.0070.01116.24
7.3.00.0080.01216.32

preferences:
129.29 ms | 403 KiB | 5 Q