3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Dummy object for testing purposes. $user = new stdClass; $user->ID = 1234; // Wrapped for brevity. $sql = "SELECT * FROM `wp_podsrel` WHERE `related_item_id` = $user->ID AND `pod_id` = 17 AND `field_id` = 25"; $user->foo = [ 'ID' => 567 ]; // Now here we need to use brackets, i.e. {}. $sql2 = "SELECT * FROM `wp_podsrel` WHERE `related_item_id` = {$user->foo['ID']} AND `pod_id` = 17 AND `field_id` = 25"; $user->bar = (object) $user->foo; // Here we also need to use {}. $sql3 = "SELECT * FROM `wp_podsrel` WHERE `related_item_id` = {$user->bar->ID} AND `pod_id` = 17 AND `field_id` = 25"; var_dump( $sql, $sql2, $sql3 );

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.5.10.0070.00618.73
8.5.00.0070.00220.02
8.4.150.0020.00014.05
8.4.140.0080.01317.66
8.4.130.0090.00818.77
8.4.120.0120.00519.41
8.4.110.0060.00424.35
8.4.100.0100.01117.96
8.4.90.0110.01020.46
8.4.80.0040.00418.85
8.4.70.0130.00820.42
8.4.60.0100.01120.49
8.4.50.0110.01017.69
8.4.40.0030.00617.96
8.4.30.0100.00018.63
8.4.20.0000.00817.85
8.4.10.0060.00317.71
8.3.280.0090.01118.43
8.3.270.0110.00816.87
8.3.260.0110.00816.40
8.3.250.0140.00516.64
8.3.240.0060.00216.68
8.3.230.0040.00616.47
8.3.220.0070.01018.82
8.3.210.0110.00916.57
8.3.200.0040.00416.43
8.3.190.0090.00916.97
8.3.180.0120.00718.70
8.3.170.0090.00918.71
8.3.160.0150.00316.50
8.3.150.0150.00318.86
8.3.140.0060.00318.49
8.3.130.0140.00318.41
8.3.120.0070.00318.93
8.3.110.0030.00616.53
8.3.100.0100.00016.75
8.3.90.0080.00026.77
8.3.80.0040.00718.51
8.3.70.0140.00716.58
8.3.60.0040.01116.50
8.3.50.0070.00720.12
8.3.40.0090.00620.15
8.3.30.0040.01118.79
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.290.0140.00616.46
8.2.280.0040.00518.19
8.2.270.0060.00917.39
8.2.260.0040.00417.28
8.2.250.0080.00018.47
8.2.240.0070.00318.30
8.2.230.0000.00820.94
8.2.220.0040.00724.06
8.2.210.0040.00426.77
8.2.200.0090.00316.75
8.2.190.0070.01116.58
8.2.180.0060.00925.92
8.2.170.0070.00718.91
8.2.160.0100.00322.96
8.2.150.0140.00325.66
8.2.140.0150.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00320.35
8.2.100.0090.00317.91
8.2.90.0060.00320.45
8.2.80.0040.00418.03
8.2.70.0090.00017.63
8.2.60.0040.00417.63
8.2.50.0000.00819.25
8.2.40.0000.00817.97
8.2.30.0030.00618.02
8.2.20.0040.00420.46
8.2.10.0040.00417.82
8.2.00.0040.00419.33
8.1.330.0090.01016.16
8.1.320.0040.00417.79
8.1.310.0140.00318.48
8.1.300.0060.01016.09
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0040.00421.96
8.1.260.0090.00926.35
8.1.250.0000.00828.09
8.1.240.0100.00022.88
8.1.230.0090.00320.85
8.1.220.0030.00517.74
8.1.210.0000.00818.96
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0070.00018.71
8.1.150.0000.00718.63
8.1.140.0070.00017.36
8.1.130.0030.00318.83
8.1.120.0050.00317.29
8.1.110.0040.00417.45
8.1.100.0030.00517.38
8.1.90.0000.00717.38
8.1.80.0050.00517.41
8.1.70.0030.00317.47
8.1.60.0060.00717.56
8.1.50.0060.00317.49
8.1.40.0000.00917.37
8.1.30.0040.00717.50
8.1.20.0000.00817.70
8.1.10.0030.00617.45
8.1.00.0060.00317.34
8.0.300.0070.00020.03
8.0.290.0030.00616.63
8.0.280.0000.00818.46
8.0.270.0040.00416.77
8.0.260.0000.00618.49
8.0.250.0070.00016.84
8.0.240.0000.00816.90
8.0.230.0030.00316.93
8.0.220.0000.00716.91
8.0.210.0000.00716.91
8.0.200.0000.00716.96
8.0.190.0080.00017.02
8.0.180.0030.00416.84
8.0.170.0080.00016.90
8.0.160.0040.00416.95
8.0.150.0070.00016.88
8.0.140.0040.00416.84
8.0.130.0070.00016.70
8.0.120.0040.00416.86
8.0.110.0000.00716.82
8.0.100.0040.00416.81
8.0.90.0000.00716.90
8.0.80.0070.00016.83
8.0.70.0040.00416.85
8.0.60.0050.00316.90
8.0.50.0050.00316.92
8.0.30.0000.00716.86
8.0.20.0050.00216.96
8.0.10.0040.00417.03
7.4.330.0050.00015.55
7.4.320.0000.00616.44
7.4.300.0020.00516.66
7.4.290.0030.00316.52
7.4.280.0080.00016.53
7.4.270.0030.00316.65
7.4.260.0000.00716.54
7.4.250.0000.00716.60
7.4.240.0040.00416.58
7.4.230.0030.00516.48
7.4.220.0040.00416.59
7.4.210.0080.00016.56
7.4.200.0000.00716.52
7.4.190.0050.00316.63
7.4.180.0000.00616.66
7.4.160.0040.00416.50
7.4.150.0080.00016.52
7.4.140.0070.00016.49
7.4.130.0070.00016.45
7.4.120.0040.00416.30
7.4.110.0070.00016.35
7.4.100.0030.00316.41
7.4.90.0000.00716.44
7.4.80.0030.00316.53
7.4.70.0000.00716.38
7.4.60.0050.00316.45
7.4.50.0000.00816.35
7.4.40.0080.00016.37
7.4.30.0070.00016.43
7.4.20.0030.00316.44
7.4.10.0070.00016.42
7.4.00.0030.00316.37

preferences:
155.3 ms | 403 KiB | 5 Q