3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($user_id, $focus_x, $focus_y, $focus_width, $orientation) = ["756272","0","0","350","1"]; $focus_x = preg_match('/^\d+$/)', $focus_x) ? intval($focus_x) : -1; $focus_y = preg_match('/^\d+$/)', $focus_y) ? intval($focus_y) : -1; $focus_width = preg_match('/^\d+$/)', $focus_width) ? intval($focus_width) : -1; $orientation = intval($orientation); if ($focus_x >= 0 && $focus_y >= 0 && $focus_width > 0) { echo "yehu"; }

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.0070.01518.68
8.3.50.0110.00316.16
8.3.40.0110.00318.67
8.3.30.0110.00418.68
8.3.20.0000.00718.88
8.3.10.0040.00421.95
8.3.00.0080.00019.60
8.2.180.0110.00416.63
8.2.170.0180.00422.96
8.2.160.0030.01320.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00020.52
8.2.120.0000.00826.35
8.2.110.0090.00020.39
8.2.100.0040.00817.84
8.2.90.0040.00419.36
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0040.00422.18
8.2.30.0000.00820.97
8.2.20.0040.00318.16
8.2.10.0000.00717.98
8.2.00.0070.00018.11
8.1.280.0070.01125.92
8.1.270.0000.00722.05
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00920.78
8.1.230.0040.00719.15
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0070.00317.25
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00318.55
8.1.160.0070.00018.99
8.1.150.0000.00718.94
8.1.140.0040.00419.57
8.1.130.0030.00318.88
8.1.120.0000.00717.43
8.1.110.0050.00317.43
8.1.100.0040.00417.36
8.1.90.0070.00017.43
8.1.80.0000.00717.38
8.1.70.0070.00017.50
8.1.60.0030.00617.61
8.1.50.0000.00817.49
8.1.40.0040.00817.41
8.1.30.0000.00817.64
8.1.20.0080.00017.63
8.1.10.0030.00617.52
8.1.00.0060.00317.32
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0030.00318.43
8.0.270.0050.00217.21
8.0.260.0060.00316.78
8.0.250.0030.00316.88
8.0.240.0060.00317.00
8.0.230.0040.00416.97
8.0.220.0030.00316.85
8.0.210.0070.00016.94
8.0.200.0060.00016.93
8.0.190.0000.00816.98
8.0.180.0040.00416.89
8.0.170.0030.00517.01
8.0.160.0000.00716.97
8.0.150.0070.00016.92
8.0.140.0050.00216.89
8.0.130.0050.00013.28
8.0.120.0000.00716.82
8.0.110.0070.00016.93
8.0.100.0050.00216.82
8.0.90.0000.00716.77
8.0.80.0140.00616.90
8.0.70.0070.00016.94
8.0.60.0040.00417.06
8.0.50.0070.00016.89
8.0.30.0070.01317.10
8.0.20.0090.01017.40
8.0.10.0070.00017.01
8.0.00.0100.01016.84
7.4.330.0020.00215.55
7.4.320.0070.00016.35
7.4.300.0000.00716.63
7.4.290.0050.00616.49
7.4.280.0040.00416.58
7.4.270.0000.00716.60
7.4.260.0030.00313.25
7.4.250.0000.00716.49
7.4.240.0000.00716.51
7.4.230.0070.00016.69
7.4.220.0040.01416.59
7.4.210.0060.00816.59
7.4.200.0020.00516.68
7.4.160.0030.01216.60
7.4.150.0060.01117.40
7.4.140.0130.00917.86
7.4.130.0120.00816.56
7.4.120.0080.00916.47
7.4.110.0120.01216.64
7.4.100.0090.00916.64
7.4.90.0070.01016.61
7.4.80.0140.00419.39
7.4.70.0030.01316.57
7.4.60.0060.00916.77
7.4.50.0110.00416.53
7.4.40.0070.01516.57
7.4.30.0080.00816.45
7.4.00.0070.01014.81
7.3.330.0080.00013.17
7.3.320.0000.00513.28
7.3.310.0000.00816.46
7.3.300.0040.00416.20
7.3.290.0040.00416.36
7.3.280.0080.00916.33
7.3.270.0070.01417.40
7.3.260.0080.01016.54
7.3.250.0130.00616.44
7.3.240.0130.00616.38
7.3.230.0100.01016.51
7.3.210.0090.00916.37
7.3.200.0040.01216.45
7.3.190.0070.01016.57
7.3.180.0070.01016.26
7.3.170.0090.00616.33
7.3.160.0150.00316.48
7.3.120.0100.01014.91
7.3.110.0100.00714.73
7.3.100.0030.01015.06
7.3.90.0090.00614.55
7.3.80.0080.00414.93
7.3.70.0060.00314.39
7.3.60.0090.00614.80
7.3.50.0030.00714.65
7.3.40.0090.00314.96
7.3.30.0100.00314.66
7.3.20.0110.00316.69
7.3.10.0070.00716.64
7.3.00.0030.01216.52
7.2.330.0140.00916.63
7.2.320.0100.00716.67
7.2.310.0090.00916.64
7.2.300.0110.01016.52
7.2.290.0180.00016.70
7.2.250.0060.01215.09
7.2.240.0100.01014.71
7.2.230.0000.01615.24
7.2.220.0090.00915.12
7.2.210.0060.00315.16
7.2.200.0040.00714.90
7.2.190.0080.00414.95
7.2.180.0000.01214.98
7.2.170.0070.01015.04
7.2.60.0000.01517.02
7.2.00.0000.01019.47
7.1.330.0070.00715.74
7.1.320.0040.00815.57
7.1.310.0000.01315.80
7.1.300.0060.00915.80
7.1.290.0030.00915.69
7.1.280.0000.01115.53
7.1.270.0030.01015.68
7.1.260.0100.00315.81
7.1.200.0070.00715.92
7.1.100.0030.00918.40
7.1.70.2730.01715.31
7.1.60.2600.00733.42
7.1.50.1930.00732.77
7.1.40.1770.02032.66
7.1.30.2170.01732.61
7.1.20.1570.01332.79
7.1.10.1270.01014.82
7.1.00.2130.01314.73
7.0.200.2800.01014.73
7.0.190.2230.01015.00
7.0.180.2130.01014.31
7.0.170.2430.00714.44
7.0.160.2530.00314.46
7.0.150.1630.00314.45
7.0.140.2100.01314.65
7.0.130.1300.01014.52
7.0.120.1730.00714.79
7.0.110.1870.01014.32
7.0.100.2100.01014.44
7.0.90.2170.00714.11
7.0.80.2400.01714.55
7.0.70.2670.01014.32
7.0.60.2530.01014.32
7.0.50.2700.00714.42
7.0.40.2300.01014.77
7.0.30.2200.01314.88
7.0.20.0100.00714.51
7.0.10.0030.01314.53
7.0.00.0030.01714.76

preferences:
56.15 ms | 401 KiB | 5 Q