3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array ( "phone_number" => "9088886655", "phone_number_2" => NULL, "phone_number_3" => NULL ); if(empty($row['phone_number']) && empty($row['phone_number_2']) && empty($row['phone_number_3'])) print('yf1'.PHP_EOL); if(!empty($row['phone_number']) && !check_phone($row['phone_number'])) print('yf2'.PHP_EOL); if(!empty($row['phone_number_2']) && !check_phone($row['phone_number_2'])) print('yf3'.PHP_EOL); if(!empty($row['phone_number_3']) && !check_phone($row['phone_number_3'])) print('yf4'.PHP_EOL); function check_phone($v) { print('y'.$v.PHP_EOL); }

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.0120.00918.30
8.3.50.0070.01121.02
8.3.40.0040.01118.84
8.3.30.0030.01020.21
8.3.20.0110.00420.04
8.3.10.0080.00021.95
8.3.00.0080.00022.50
8.2.180.0040.01116.50
8.2.170.0070.00722.96
8.2.160.0040.01218.89
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00726.16
8.2.120.0000.00820.80
8.2.110.0080.00320.84
8.2.100.0080.00318.28
8.2.90.0030.00519.12
8.2.80.0050.00517.97
8.2.70.0080.00017.63
8.2.60.0030.00518.04
8.2.50.0030.00518.10
8.2.40.0000.00820.52
8.2.30.0040.00419.41
8.2.20.0000.00717.59
8.2.10.0050.00217.77
8.2.00.0030.00517.75
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00621.30
8.1.230.0000.01220.31
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00818.53
8.1.160.0070.00022.19
8.1.150.0000.00718.59
8.1.140.0040.00417.49
8.1.130.0040.00417.88
8.1.120.0020.00517.45
8.1.110.0040.00417.51
8.1.100.0000.00717.32
8.1.90.0000.00717.36
8.1.80.0070.00017.38
8.1.70.0070.00017.32
8.1.60.0000.00817.57
8.1.50.0000.00717.43
8.1.40.0030.00617.39
8.1.30.0040.00417.57
8.1.20.0050.00317.64
8.1.10.0060.00317.51
8.1.00.0030.00617.55
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.42
8.0.270.0000.00817.25
8.0.260.0050.00316.73
8.0.250.0060.00017.01
8.0.240.0000.00716.93
8.0.230.0030.00516.80
8.0.220.0030.00316.95
8.0.210.0070.00016.79
8.0.200.0040.00416.85
8.0.190.0040.00416.96
8.0.180.0040.00416.93
8.0.170.0080.00016.88
8.0.160.0000.00716.86
8.0.150.0070.00016.85
8.0.140.0000.00716.80
8.0.130.0070.00013.30
8.0.120.0040.00416.95
8.0.110.0040.00416.80
8.0.100.0000.00716.78
8.0.90.0000.00716.83
8.0.80.0090.00616.83
8.0.70.0070.00016.90
8.0.60.0000.00716.77
8.0.50.0070.00016.79
8.0.30.0120.01017.11
8.0.20.0110.00817.40
8.0.10.0030.00516.80
8.0.00.0090.01116.73
7.4.330.0030.00315.09
7.4.320.0060.00016.55
7.4.300.0050.00216.50
7.4.290.0070.00016.46
7.4.280.0000.00716.56
7.4.270.0000.00716.49
7.4.260.0000.00513.27
7.4.250.0040.00416.60
7.4.240.0050.00216.51
7.4.230.0040.00416.31
7.4.220.0060.01216.69
7.4.210.0050.00916.57
7.4.200.0070.00016.45
7.4.190.0030.00316.66
7.4.160.0060.00916.52
7.4.150.0110.00617.40
7.4.140.0150.00517.86
7.4.130.0240.01116.47
7.4.120.0100.00716.54
7.4.110.0070.01016.55
7.4.100.0100.01016.50
7.4.90.0140.00416.57
7.4.80.0070.01019.39
7.4.70.0080.01016.42
7.4.60.0080.00816.54
7.4.50.0040.00416.59
7.4.40.0060.00622.77
7.4.30.0110.00616.59
7.4.00.0030.00715.07
7.3.330.0000.00513.22
7.3.320.0000.00513.29
7.3.310.0000.00716.21
7.3.300.0000.00716.40
7.3.290.0060.01016.35
7.3.280.0070.00916.39
7.3.270.0130.00317.40
7.3.260.0100.00716.45
7.3.250.0110.00816.44
7.3.240.0040.01316.35
7.3.230.0110.00716.54
7.3.210.0090.01316.45
7.3.200.0080.00819.39
7.3.190.0030.01516.34
7.3.180.0030.01616.23
7.3.170.0070.00916.48
7.3.160.0080.00816.47
7.3.120.0060.00614.63
7.3.10.0080.00716.53
7.3.00.0050.01016.56
7.2.330.0160.00316.46
7.2.320.0090.01516.67
7.2.310.0030.01316.48
7.2.300.0100.00616.43
7.2.290.0000.01616.66
7.2.130.0050.01016.72
7.2.120.0070.00516.64
7.2.110.0060.00816.54
7.2.100.0030.01016.59
7.2.90.0040.01016.86
7.2.80.0090.00516.77
7.2.70.0070.01016.86
7.2.60.0110.00516.75
7.2.50.0130.00516.74
7.2.40.0090.01316.53
7.2.30.0090.00816.69
7.2.20.0110.01016.73
7.2.10.0050.01416.58
7.2.00.0090.00517.62
7.1.250.0070.00715.54
7.1.100.0000.01717.90
7.1.70.0000.00717.11
7.1.60.0120.00319.32
7.1.50.0040.00716.77
7.1.00.0130.07322.28
7.0.200.0040.00416.71
7.0.140.0070.07022.00
7.0.100.0070.07720.08
7.0.90.0070.06719.93
7.0.80.0170.05019.99
7.0.70.0070.04319.93
7.0.60.0100.04720.05
7.0.50.0230.05320.30
7.0.40.0170.07020.09
7.0.30.0070.08720.00
7.0.20.0030.05720.05
7.0.10.0030.08720.02
7.0.00.0100.05720.11
5.6.280.0030.07321.10
5.6.250.0170.07020.70
5.6.240.0100.07720.61
5.6.230.0070.08320.57
5.6.220.0130.07020.65
5.6.210.0130.07720.69
5.6.200.0030.05721.08
5.6.190.0030.08721.07
5.6.180.0130.07321.11
5.6.170.0030.06021.12
5.6.160.0030.05021.18
5.6.150.0130.07721.12
5.6.140.0100.06321.01
5.6.130.0070.08020.98
5.6.120.0030.04720.94
5.6.110.0100.07721.17
5.6.100.0130.08021.08
5.6.90.0030.04721.15
5.6.80.0130.07020.50
5.6.70.0070.08020.47
5.6.60.0030.08020.41
5.6.50.0070.07320.57
5.6.40.0130.04020.30
5.6.30.0070.04320.39
5.6.20.0200.07020.40
5.6.10.0070.07320.39
5.6.00.0070.04720.37
5.5.380.0000.07020.43
5.5.370.0030.07720.48
5.5.360.0200.06020.43
5.5.350.0170.07320.45
5.5.340.0100.06720.81
5.5.330.0100.07720.74
5.5.320.0230.03320.84
5.5.310.0030.08320.77
5.5.300.0070.07720.87
5.5.290.0000.09320.80
5.5.280.0030.07720.87
5.5.270.0170.06720.63
5.5.260.0230.07020.86
5.5.250.0100.05720.74
5.5.240.0030.05020.17
5.5.230.0070.04020.21
5.5.220.0130.04320.28
5.5.210.0070.06020.22
5.5.200.0070.08020.09
5.5.190.0100.07720.25
5.5.180.0000.06319.99
5.5.160.0100.07320.28
5.5.150.0070.07719.99
5.5.140.0000.08319.98
5.5.130.0070.04720.11
5.5.120.0100.06319.98
5.5.110.0000.08320.22
5.5.100.0070.07719.98
5.5.90.0100.06720.07
5.5.80.0130.07320.13
5.5.70.0030.05320.15
5.5.60.0000.07319.97
5.5.50.0030.04719.93
5.5.40.0000.08020.03
5.5.30.0100.04020.09
5.5.20.0030.07720.05
5.5.10.0070.08020.04
5.5.00.0100.04320.04
5.4.450.0170.05319.36
5.4.440.0030.05319.46
5.4.430.0100.06019.20
5.4.420.0130.07019.49
5.4.410.0100.05319.43
5.4.400.0070.07719.14
5.4.390.0070.05318.89
5.4.380.0230.05718.88
5.4.370.0070.07319.10
5.4.360.0000.05719.04
5.4.350.0070.04719.04
5.4.340.0100.07319.04
5.4.320.0170.07319.14
5.4.310.0030.07719.13
5.4.300.0130.04019.16
5.4.290.0100.07018.90
5.4.280.0100.03719.04
5.4.270.0130.07018.95
5.4.260.0030.05019.14
5.4.250.0170.06719.23
5.4.240.0100.07319.13
5.4.230.0130.03719.20
5.4.220.0000.08319.21
5.4.210.0070.04319.12
5.4.200.0030.06719.03
5.4.190.0070.07319.08
5.4.180.0100.06719.15
5.4.170.0070.07719.20
5.4.160.0100.07719.19
5.4.150.0030.08019.16
5.4.140.0100.05716.19
5.4.130.0000.07316.42
5.4.120.0030.04316.46
5.4.110.0070.07016.39
5.4.100.0030.05316.43
5.4.90.0070.07316.43
5.4.80.0130.06016.44
5.4.70.0000.06716.41
5.4.60.0070.04016.41
5.4.50.0030.04316.34
5.4.40.0000.06016.39
5.4.30.0130.03016.44
5.4.20.0100.06016.43
5.4.10.0130.06316.39
5.4.00.0100.06715.84
5.3.290.0000.08014.80
5.3.280.0130.06314.53
5.3.270.0030.07714.58
5.3.260.0130.05714.63
5.3.250.0100.07714.56
5.3.240.0000.08014.56
5.3.230.0100.07314.63
5.3.220.0100.07014.55
5.3.210.0030.06314.55
5.3.200.0170.05714.57
5.3.190.0000.08014.50
5.3.180.0070.07314.58
5.3.170.0070.06714.63
5.3.160.0070.06714.54
5.3.150.0070.05314.58
5.3.140.0100.06314.54
5.3.130.0000.07314.48
5.3.120.0030.08014.66
5.3.110.0100.07014.55
5.3.100.0070.06714.01
5.3.90.0100.06713.99
5.3.80.0000.05014.14
5.3.70.0200.04714.05
5.3.60.0000.07314.12
5.3.50.0070.07013.87
5.3.40.0070.07713.98
5.3.30.0070.06013.94
5.3.20.0070.04313.76
5.3.10.0030.07013.64
5.3.00.0100.07013.76
5.2.170.0070.03712.10
5.2.160.0000.03712.10
5.2.150.0100.05312.10
5.2.140.0030.06712.10
5.2.130.0070.05712.10
5.2.120.0030.06712.10
5.2.110.0030.06012.10
5.2.100.0030.05012.10
5.2.90.0030.06312.10
5.2.80.0100.05712.10
5.2.70.0000.06312.10
5.2.60.0070.03712.10
5.2.50.0030.06012.10
5.2.40.0030.05712.10
5.2.30.0100.05312.10
5.2.20.0000.04012.10
5.2.10.0030.04312.10
5.2.00.0100.03312.10
5.1.60.0030.04712.10
5.1.50.0030.03012.10
5.1.40.0130.02312.10
5.1.30.0070.04712.10
5.1.20.0130.04312.10
5.1.10.0030.05012.10
5.1.00.0030.03712.10
5.0.50.0000.02012.10
5.0.40.0030.02312.10
5.0.30.0070.05712.10
5.0.20.0000.02012.10
5.0.10.0000.02712.10
5.0.00.0000.03712.10
4.4.90.0070.01312.10
4.4.80.0030.01712.10
4.4.70.0000.02012.10
4.4.60.0000.02712.10
4.4.50.0030.03712.10
4.4.40.0030.04012.10
4.4.30.0070.02312.10
4.4.20.0100.03712.10
4.4.10.0000.01712.10
4.4.00.0030.02712.10
4.3.110.0070.01312.10
4.3.100.0000.03012.10
4.3.90.0000.02012.10
4.3.80.0030.02712.10
4.3.70.0000.02012.10
4.3.60.0000.01712.10
4.3.50.0030.01712.10
4.3.40.0000.02312.10
4.3.30.0000.01312.10
4.3.20.0000.01312.10
4.3.10.0000.01712.10
4.3.00.0000.01312.10

preferences:
40.24 ms | 401 KiB | 5 Q