3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fnames = array("Patrick","Janjan","Nico"); $mnames = array("Dasal","Agustino","Macatangay"); $lnames = array("Paredes","Fung","Acedillo"); $names = array($fnames,$mnames,$lnames); var_dump(array_intersect($names, [["Patrick"]])); if(array_intersect($names, [["Patrick"]])){ echo "It exists"; } else{ echo "Doesn't exists"; }

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.0150.00618.30
8.3.50.0140.00416.49
8.3.40.0100.00718.97
8.3.30.0100.00318.75
8.3.20.0050.00318.85
8.3.10.0080.00021.03
8.3.00.0080.00017.80
8.2.180.0140.00416.88
8.2.170.0140.00422.96
8.2.160.0000.01419.04
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00419.83
8.2.120.0040.00426.35
8.2.110.0030.00722.08
8.2.100.0090.00318.03
8.2.90.0000.00817.88
8.2.80.0060.00618.71
8.2.70.0060.00318.04
8.2.60.0080.00018.22
8.2.50.0090.00018.10
8.2.40.0060.00319.21
8.2.30.0040.00419.38
8.2.20.0040.00418.07
8.2.10.0080.00018.08
8.2.00.0040.00419.42
8.1.280.0180.00325.92
8.1.270.0030.00623.98
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00721.80
8.1.230.0090.00317.60
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00517.13
8.1.180.0030.00618.10
8.1.170.0030.00618.46
8.1.160.0000.00718.77
8.1.150.0000.00718.90
8.1.140.0080.00017.66
8.1.130.0030.00518.95
8.1.120.0040.00417.45
8.1.110.0000.00717.38
8.1.100.0000.00717.44
8.1.90.0070.00317.48
8.1.80.0030.00917.51
8.1.70.0080.00017.48
8.1.60.0000.00817.49
8.1.50.0050.00317.55
8.1.40.0040.00417.43
8.1.30.0040.00417.58
8.1.20.0000.00817.53
8.1.10.0040.00417.42
8.1.00.0000.00717.42
8.0.300.0070.00020.14
8.0.290.0000.00816.75
8.0.280.0070.00018.42
8.0.270.0070.00017.32
8.0.260.0090.00017.27
8.0.250.0030.00316.96
8.0.240.0000.00716.98
8.0.230.0040.00417.01
8.0.220.0000.00716.97
8.0.210.0000.00716.95
8.0.200.0000.01017.04
8.0.190.0040.00417.00
8.0.180.0040.00416.95
8.0.170.0030.00617.00
8.0.160.0040.00417.03
8.0.150.0040.00416.93
8.0.140.0000.00716.95
8.0.130.0030.00613.35
8.0.120.0040.00416.97
8.0.110.0000.00816.97
8.0.100.0040.00416.86
8.0.90.0040.00416.76
8.0.80.0090.01016.93
8.0.70.0000.00717.02
8.0.60.0000.00817.03
8.0.50.0000.00716.92
8.0.30.0140.00617.21
8.0.20.0040.01517.40
8.0.10.0050.00217.20
8.0.00.0070.01016.86
7.4.330.0020.00215.55
7.4.320.0070.00016.63
7.4.300.0070.00016.51
7.4.290.0000.00716.50
7.4.280.0000.00816.61
7.4.270.0030.00616.52
7.4.260.0040.00416.62
7.4.250.0040.00316.33
7.4.240.0040.00416.53
7.4.230.0070.00016.39
7.4.220.0030.00616.69
7.4.210.0070.01116.53
7.4.200.0070.00016.53
7.4.160.0100.00716.52
7.4.140.0120.00817.86
7.4.130.0160.00316.55
7.4.120.0110.00816.57
7.4.110.0090.00916.71
7.4.100.0090.01216.68
7.4.90.0090.00916.57
7.4.80.0110.01219.39
7.4.70.0110.01116.54
7.4.60.0030.01316.30
7.4.50.0030.01316.32
7.4.40.0160.00816.52
7.4.00.0000.01614.89
7.3.330.0060.00013.05
7.3.320.0030.00313.09
7.3.310.0040.00416.09
7.3.300.0050.00216.15
7.3.290.0070.00016.21
7.3.280.0070.00916.24
7.3.260.0090.00816.45
7.3.240.0060.01116.42
7.3.230.0110.00716.34
7.3.210.0180.00816.28
7.3.200.0090.00616.36
7.3.190.0070.01016.42
7.3.180.0100.00716.43
7.3.170.0070.01016.51
7.3.160.0140.00916.40
7.3.120.0140.00414.95
7.3.110.0000.01314.84
7.3.100.0030.00714.79
7.3.90.0080.00014.89
7.3.80.0000.01414.80
7.3.70.0000.01314.75
7.3.60.0000.01114.70
7.3.50.0070.00714.46
7.3.40.0000.00914.73
7.3.30.0040.00714.76
7.3.20.0050.00516.57
7.3.10.0030.01316.64
7.3.00.0100.00716.80
7.2.330.0100.01416.56
7.2.320.0120.00616.40
7.2.310.0080.01116.63
7.2.300.0130.00616.46
7.2.290.0060.01216.45
7.2.240.0030.01015.20
7.2.230.0000.01214.84
7.2.220.0000.01215.14
7.2.210.0000.01514.94
7.2.200.0000.01214.93
7.2.190.0070.00314.73
7.2.180.0000.01315.10
7.2.170.0030.00714.98
7.2.160.0030.01414.92
7.2.150.0030.01216.62
7.2.140.0080.00416.95
7.2.130.0000.01516.80
7.2.120.0000.01816.95
7.2.110.0100.00316.55
7.2.100.0130.00316.88
7.2.90.0120.00616.72
7.2.80.0060.01216.91
7.2.70.0090.00616.94
7.2.60.1320.00615.79
7.2.50.1550.00715.82
7.2.40.1370.01016.00
7.2.30.1930.00716.16
7.2.20.1340.00716.02
7.2.10.1410.00816.00
7.2.00.1530.01116.07
7.1.330.0060.00915.52
7.1.320.0000.01715.84
7.1.310.0000.01015.88
7.1.300.0100.00315.79
7.1.290.0040.01215.75
7.1.280.0040.01215.81
7.1.270.0090.00915.75
7.1.260.0040.01115.81
7.1.250.0000.01115.86
7.1.200.0040.00415.91
7.1.170.3230.00913.81
7.1.160.2820.01416.50
7.1.150.2290.01116.84
7.1.140.2810.01316.91
7.1.130.2770.01017.07
7.1.120.2580.00916.75
7.1.110.2210.01016.15
7.1.100.3540.01216.32
7.1.90.3510.01016.03
7.1.80.3170.01216.07
7.1.70.3440.00915.44
7.1.60.2770.01033.14
7.1.50.1700.01633.00
7.1.40.2040.01632.41
7.1.30.1670.01432.55
7.1.20.2400.01532.65
7.1.10.1530.01014.63
7.1.00.2600.01414.63

preferences:
53.89 ms | 400 KiB | 5 Q