3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Returns a string containing the type, and value in prettyfied JSON, of the argument. function pretty ($var) { return gettype($var) . ' ' . json_encode( $var, JSON_UNESCAPED_SLASHES | // Don't escape forward slashes. stripslashes() could be used afterwards instead JSON_UNESCAPED_UNICODE | // Print unicode characters insteas of their encoding "€" vs "\u20ac" JSON_PRETTY_PRINT | // Nice layout over several lines, human readable JSON_PARTIAL_OUTPUT_ON_ERROR | // Substitute whatever can not be printed JSON_INVALID_UTF8_SUBSTITUTE // Convert invalid UTF-8 characters to \0xfffd (Unicode Character 'REPLACEMENT CHARACTER') ); // Constants: https://www.php.net/manual/en/json.constants.php } $argsObj = (object) [ 'operation' => 'acquireNext', 'args' => [ 'workerIntegration' => 1, 'workerType' => '2', 'jobStatus' => 'scheduled' ], 'caller' => __FILE__ . ':' . __LINE__ ]; echo "argsObj: " . pretty($argsObj) . PHP_EOL; print_r($argsObj); var_dump($argsObj); ?>

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.4.140.0150.00717.43
8.4.130.0050.00418.62
8.4.120.0140.00623.91
8.4.110.0050.00318.98
8.4.100.0120.00917.92
8.4.90.0010.00920.59
8.4.80.0070.00219.07
8.4.70.0050.00318.78
8.4.60.0100.00920.48
8.4.50.0140.00618.53
8.4.40.0070.01319.35
8.4.30.0070.01318.58
8.4.20.0160.00420.54
8.4.10.0100.01019.45
8.3.270.0100.00916.54
8.3.260.0090.00816.57
8.3.250.0120.00718.73
8.3.240.0140.00516.88
8.3.230.0040.00516.79
8.3.220.0080.01119.12
8.3.210.0100.00816.72
8.3.200.0050.00416.70
8.3.190.0060.00319.00
8.3.180.0130.00917.58
8.3.170.0000.01820.64
8.3.160.0000.00717.26
8.3.150.0080.01117.06
8.3.140.0180.00016.63
8.3.130.0000.00916.46
8.3.120.0060.00318.90
8.3.110.0080.00020.94
8.3.100.0050.00516.54
8.3.90.0120.00618.33
8.3.80.0100.00018.43
8.3.70.0120.00316.75
8.3.60.0090.00618.56
8.3.50.0100.01318.26
8.3.40.0110.00418.79
8.3.30.0070.00718.71
8.3.20.0040.00421.64
8.3.10.0080.00421.93
8.3.00.0000.00823.54
8.2.290.0110.00820.16
8.2.280.0060.01318.42
8.2.270.0110.01117.26
8.2.260.0200.00016.63
8.2.250.0040.01117.04
8.2.240.0130.00717.01
8.2.230.0000.01022.58
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0000.00918.54
8.2.190.0040.01116.58
8.2.180.0100.00616.50
8.2.170.0070.01122.96
8.2.160.0090.00620.53
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00026.16
8.2.110.0040.00722.12
8.2.100.0000.01217.91
8.2.90.0000.00817.63
8.2.80.0000.00817.97
8.2.70.0030.00517.93
8.2.60.0000.00918.22
8.2.50.0060.00318.10
8.2.40.0050.00321.06
8.2.30.0030.00519.13
8.2.20.0040.00418.16
8.2.10.0040.00420.59
8.2.00.0050.00319.30
8.1.330.0120.00721.96
8.1.320.0090.01216.09
8.1.310.0070.01018.50
8.1.300.0090.00916.21
8.1.290.0090.00018.88
8.1.280.0110.00725.92
8.1.270.0090.00022.51
8.1.260.0100.00627.51
8.1.250.0000.00728.09
8.1.240.0040.00422.18
8.1.230.0110.00019.01
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.57
8.1.160.0040.00420.84
8.1.150.0040.00418.88
8.1.140.0040.00418.79
8.1.130.0030.00317.44
8.1.120.0110.00617.41
8.1.110.0000.00717.41
8.1.100.0000.00717.34
8.1.90.0040.00417.40
8.1.80.0080.00017.52
8.1.70.0000.00717.34
8.1.60.0030.00517.62
8.1.50.0070.00017.53
8.1.40.0030.00517.47
8.1.30.0030.00617.56
8.1.20.0060.00317.61
8.1.10.0050.00317.46
8.1.00.0000.00817.46
8.0.300.0040.00421.50
8.0.290.0000.00716.88
8.0.280.0040.00418.49
8.0.270.0000.00716.88
8.0.260.0030.00316.89
8.0.250.0030.00317.02
8.0.240.0000.00717.04
8.0.230.0040.00216.95
8.0.220.0050.00316.95
8.0.210.0000.00616.91
8.0.200.0030.00316.88
8.0.190.0000.00716.90
8.0.180.0070.00016.97
8.0.170.0080.00017.02
8.0.160.0000.00716.87
8.0.150.0070.00316.95
8.0.140.0060.00316.93
8.0.130.0000.00513.38
8.0.120.0040.00416.82
8.0.110.0000.00716.79
8.0.100.0080.00017.00
8.0.90.0000.00716.95
8.0.80.0070.01116.91
8.0.70.0040.00416.82
8.0.60.0000.00716.96
8.0.50.0040.00416.99
8.0.30.0120.00717.14
8.0.20.0070.01416.93
8.0.10.0040.00416.88
8.0.00.0120.00816.74
7.4.330.0120.00523.91
7.4.320.0000.00616.55
7.4.300.0030.00316.55
7.4.290.0080.00016.59
7.4.280.0080.00016.59
7.4.270.0070.00016.63
7.4.260.0040.00416.52
7.4.250.0000.00716.55
7.4.240.0000.00716.52
7.4.230.0030.00316.71
7.4.220.0000.00716.40
7.4.210.0120.00616.60
7.4.200.0000.00716.70
7.4.160.0100.00616.50
7.4.140.0070.01017.86
7.4.130.0180.00016.50
7.4.120.0060.01816.73
7.4.110.0090.00916.43
7.4.100.0150.00316.48
7.4.90.0110.00716.38
7.4.80.0120.00919.39
7.4.70.0110.00716.61
7.4.60.0100.01316.49
7.4.50.0000.01216.50
7.4.40.0160.00016.48
7.4.00.0070.00714.91
7.3.330.0000.00513.23
7.3.320.0060.00013.38
7.3.310.0000.00816.18
7.3.300.0000.00716.24
7.3.290.0060.00916.34
7.3.280.0070.00916.31
7.3.260.0150.00816.49
7.3.230.0050.01616.40
7.3.210.0140.00716.27
7.3.200.0050.01116.39
7.3.190.0060.01016.57
7.3.180.0120.00416.53
7.3.170.0060.01516.25
7.3.160.0130.00916.52
7.3.60.0090.00714.63
7.3.50.0100.00714.76
7.3.40.0080.00814.72
7.3.30.0100.00814.71
7.3.20.0130.00715.58
7.3.10.0130.00315.47
7.3.00.0120.01015.79
7.2.330.0100.01016.44
7.2.320.0090.00916.81
7.2.310.0080.00816.43
7.2.300.0080.00816.34
7.2.290.0120.00616.60
7.2.190.0120.01114.83
7.2.180.0120.00214.68
7.2.170.0080.00614.94
7.2.160.0110.00614.89
7.2.150.0090.00815.64
7.2.140.0060.01015.54
7.2.130.0110.00715.73
7.2.120.0090.00815.57
7.2.110.0160.00515.70
7.2.100.0110.00715.77
7.2.90.0130.00515.48
7.2.80.0100.00715.79
7.2.70.0100.00715.73
7.2.60.0120.00515.72
7.2.50.0150.00215.66
7.2.40.0120.00515.86
7.2.30.0050.01015.65
7.2.20.0070.01315.79
7.2.10.0160.00115.75
7.2.00.0140.00415.83
7.1.300.1510.01214.70
7.1.290.0170.00714.54
7.1.280.0070.00514.69
7.1.270.0110.00514.32
7.1.260.0100.00614.51
7.1.250.0140.00514.63

preferences:
32.73 ms | 403 KiB | 5 Q