3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($position) { $jobs = Job::where('title', 'LIKE', '%' . $position . '%'); $jobs->where('status', '<', 2); if($location) { $jobs->whereMetaIn("location", (array)$location); } if ($employment) { $jobs->withAnyTag($employment); } if ($jobs->get()->count()) { $jobsBy = "position"; } } // if no jobs by position, try with location... if($location && !$jobsBy) { $jobs = Job::whereMetaIn('location', (array)$location); $jobs->where('status', '<', 2); if($employment) { $jobs->withAnyTag($employment); } if ($jobs->get()->count()) { $jobsBy = "location"; } }

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.0170.00318.43
8.3.50.0170.00316.45
8.3.40.0140.00318.71
8.3.30.0030.01018.85
8.3.20.0070.00020.87
8.3.10.0050.00322.04
8.3.00.0050.00221.90
8.2.180.0070.01016.50
8.2.170.0090.01222.96
8.2.160.0110.00722.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00920.81
8.2.110.0030.00622.20
8.2.100.0120.00017.91
8.2.90.0040.00422.38
8.2.80.0080.00017.97
8.2.70.0000.00817.91
8.2.60.0030.00517.63
8.2.50.0040.00418.10
8.2.40.0040.00418.09
8.2.30.0060.00317.96
8.2.20.0020.00518.06
8.2.10.0000.00719.29
8.2.00.0050.00319.06
8.1.280.0070.01425.92
8.1.270.0060.00320.31
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00622.26
8.1.230.0000.01121.03
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.87
8.1.160.0000.00718.82
8.1.150.0000.00718.89
8.1.140.0000.00720.80
8.1.130.0040.00421.95
8.1.120.0040.00417.29
8.1.110.0000.00717.39
8.1.100.0000.00717.39
8.1.90.0050.00317.34
8.1.80.0080.00017.30
8.1.70.0000.00717.43
8.1.60.0030.00517.36
8.1.50.0030.00517.36
8.1.40.0040.00417.32
8.1.30.0000.00817.45
8.1.20.0030.00517.52
8.1.10.0000.00717.37
8.1.00.0050.00317.32
8.0.300.0070.00020.04
8.0.290.0070.00016.75
8.0.280.0040.00418.45
8.0.270.0070.00018.01
8.0.260.0060.00018.30
8.0.250.0060.00016.95
8.0.240.0000.00917.00
8.0.230.0040.00416.90
8.0.220.0030.00316.91
8.0.210.0070.00016.88
8.0.200.0000.00716.82
8.0.190.0030.00516.84
8.0.180.0000.00816.84
8.0.170.0000.00916.89
8.0.160.0040.00416.79
8.0.150.0040.00416.84
8.0.140.0040.00416.75
8.0.130.0030.00313.29
8.0.120.0040.00416.79
8.0.110.0030.00316.69
8.0.100.0060.00316.93
8.0.90.0030.00616.72
8.0.80.0030.01116.85
8.0.70.0040.00416.87
8.0.60.0040.00416.75
8.0.50.0040.00416.86
8.0.30.0180.00016.78
8.0.20.0120.00917.13
8.0.10.0030.00516.89
8.0.00.0090.00916.50
7.4.330.0020.00216.73
7.4.320.0050.00216.56
7.4.300.0030.00316.57
7.4.290.0000.00716.40
7.4.280.0070.00016.38
7.4.270.0050.00516.46
7.4.260.0030.00313.23
7.4.250.0000.00716.51
7.4.240.0020.00516.45
7.4.230.0070.00016.58
7.4.220.0040.00416.54
7.4.210.0110.00316.57
7.4.200.0030.00316.42
7.4.140.0150.00317.86
7.4.130.0090.00916.30
7.4.120.0170.00716.63
7.4.110.0120.00616.68
7.4.100.0090.00916.23
7.4.90.0160.00916.43
7.4.80.0120.00619.39
7.4.70.0070.01016.32
7.4.60.0100.01116.41
7.4.50.0100.00316.37
7.4.40.0140.00616.12
7.4.10.0070.01016.56
7.4.00.0080.00816.69
7.3.330.0000.00716.26
7.3.320.0060.00013.11
7.3.310.0060.00316.41
7.3.300.0060.00016.29
7.3.290.0100.00816.25
7.3.260.0100.01116.31
7.3.240.0080.00816.39
7.3.230.0070.01016.49
7.3.210.0070.01016.59
7.3.200.0060.01216.36
7.3.190.0100.01016.47
7.3.180.0060.01216.52
7.3.170.0030.01316.27
7.3.160.0090.00916.64
7.3.130.0110.00416.31
7.3.120.0120.00316.48
7.3.110.0090.00616.25
7.3.100.0080.01216.42
7.3.90.0060.01016.22
7.3.80.0120.00516.42
7.3.70.0070.01016.29
7.3.60.0140.00416.41
7.3.50.0070.01016.30
7.3.40.0090.01316.10
7.3.30.0070.01316.34
7.3.20.0100.01016.29
7.3.10.0070.01416.45
7.3.00.0070.01016.37
7.2.330.0100.01416.57
7.2.320.0070.01016.43
7.2.310.0100.00716.63
7.2.300.0060.01216.44
7.2.290.0060.00916.23
7.2.260.0070.01016.31
7.2.250.0110.00516.29
7.2.240.0090.00916.48
7.2.230.0070.01016.63
7.2.220.0060.01216.57
7.2.210.0110.00816.63
7.2.200.0140.01016.48
7.2.190.0090.01216.43
7.2.180.0110.00516.41
7.2.170.0110.00716.57
7.2.160.0100.01316.45
7.2.150.0040.01616.44
7.2.140.0070.01716.56
7.2.130.0120.00616.64
7.2.120.0090.01516.33
7.2.110.0120.01016.52
7.2.100.0120.00616.55
7.2.90.0060.01216.56
7.2.80.0060.01616.29
7.2.70.0140.00316.51
7.2.60.0130.01016.59
7.2.50.0120.01216.36
7.2.40.0070.01716.66
7.2.30.0030.01516.33
7.2.20.0030.01916.45
7.2.10.0100.00816.31
7.2.00.0120.00616.57

preferences:
54.31 ms | 400 KiB | 5 Q