3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Executor { public function execute(callable $function) { set_error_handler([$this, 'errorHandler']); var_dump($function()); restore_error_handler(); } private function errorHandler(int $type, string $message, string $file, int $line): bool { return true; } private function restoreErrorHandler(): void { } } $cb = function() { return password_hash(1234); }; (new Executor())->execute($cb);

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)
7.4.10.0050.01215.04
7.4.00.0050.01314.92
7.3.130.0050.01114.74
7.3.120.0060.01314.81
7.3.110.0100.00714.89
7.3.100.0090.00714.85
7.3.90.0060.01014.91
7.3.80.0020.01114.74
7.3.70.0080.00914.73
7.3.60.0100.00714.75
7.3.50.0050.00914.67
7.3.40.0060.00614.76
7.3.30.0040.00714.68
7.3.20.0040.00916.69
7.3.10.0070.00616.63
7.3.00.0090.00516.70
7.2.260.0030.01714.87
7.2.250.0080.00914.96
7.2.240.0060.01214.87
7.2.230.0090.00914.92
7.2.220.0040.01514.99
7.2.210.0090.00715.14
7.2.200.0080.00715.05
7.2.190.0050.01014.99
7.2.180.0050.00814.98
7.2.170.0030.01214.79
7.2.160.0050.00914.82
7.2.150.0070.00716.90
7.2.140.0080.00616.69
7.2.130.0070.01016.73
7.2.120.0050.00916.65
7.2.110.0030.01116.89
7.2.100.0080.00716.76
7.2.90.0060.01016.79
7.2.80.0060.00716.88
7.2.70.0030.01216.77
7.2.60.0070.00616.83
7.2.50.0060.00616.81
7.2.40.0070.00816.79
7.2.30.0040.01216.85
7.2.20.0040.01016.65
7.2.10.0100.00516.86
7.2.00.0040.00916.78
7.1.330.0060.00915.80
7.1.320.0130.00415.65
7.1.310.0030.01015.81
7.1.300.0100.00915.63
7.1.290.0050.00715.62
7.1.280.0040.00715.71
7.1.270.0100.00615.75
7.1.260.0090.00315.75
7.1.250.0040.01015.69
7.1.240.0090.00315.82
7.1.230.0050.01015.78
7.1.220.0020.01215.74
7.1.210.0050.01115.80
7.1.200.0070.00715.73
7.1.190.0070.00715.72
7.1.180.0060.00615.82
7.1.170.0020.00815.57
7.1.160.0040.00715.71
7.1.150.0050.01015.72
7.1.140.0080.00615.89
7.1.130.0020.01115.74
7.1.120.0060.00815.65
7.1.110.0020.01115.82
7.1.100.0050.00915.86
7.1.90.0020.01015.84
7.1.80.0100.00616.45
7.1.70.0040.01116.21
7.1.60.0120.01022.14
7.1.50.0120.00822.02
7.1.40.0080.00921.91
7.1.30.0100.01021.88
7.1.20.0090.01022.00
7.1.10.0070.01016.02
7.1.00.0060.00816.05
7.0.330.0080.00915.33
7.0.320.0050.00815.29
7.0.310.0050.00715.56
7.0.300.0070.00515.50
7.0.290.0040.00715.57
7.0.280.0080.00515.34
7.0.270.0070.00515.53
7.0.260.0080.00415.35
7.0.250.0060.00615.46
7.0.240.0070.00315.42
7.0.230.0020.00615.48
7.0.220.0060.00615.35
7.0.210.0110.00115.50
7.0.200.0070.00715.90
7.0.190.0030.01015.87
7.0.180.0090.00615.62
7.0.170.0090.00815.66
7.0.160.0050.01115.77
7.0.150.0080.00915.70
7.0.140.0060.00915.74
7.0.130.0050.00915.72
7.0.120.0030.01115.81
7.0.110.0050.00915.68
7.0.100.0080.00715.74
7.0.90.0080.00815.74
7.0.80.0080.00615.75
7.0.70.0070.00615.75
7.0.60.0070.00715.63
7.0.50.0050.00715.77
7.0.40.0030.01114.60
7.0.30.0080.00614.45
7.0.20.0060.00814.51
7.0.10.0070.00714.40
7.0.00.0040.00914.53
5.6.400.0040.00714.17
5.6.390.0050.00914.24
5.6.380.0080.00514.34
5.6.370.0030.00914.06
5.6.360.0100.00314.19
5.6.350.0080.00414.24
5.6.340.0070.00714.30
5.6.330.0070.00713.99
5.6.320.0030.00914.09
5.6.310.0090.00614.23
5.6.300.0020.01014.31
5.6.290.0040.00914.19
5.6.280.0080.00314.15
5.6.270.0050.01014.11
5.6.260.0030.00814.20
5.6.250.0030.00814.21
5.6.240.0050.01114.16
5.6.230.0070.00814.28
5.6.220.0100.00514.29
5.6.210.0050.00613.93
5.6.200.0030.01014.03
5.6.190.0070.01014.22
5.6.180.0060.00814.17
5.6.170.0040.01014.29
5.6.160.0060.00614.14
5.6.150.0080.00614.12
5.6.140.0050.01014.24
5.6.130.0070.00414.09
5.6.120.0050.00814.15
5.6.110.0060.00914.16
5.6.100.0100.00614.36
5.6.90.0030.00914.26
5.6.80.0070.00513.90
5.6.70.0020.01214.17
5.6.60.0050.00514.15
5.6.50.0050.00814.07
5.6.40.0100.00314.06
5.6.30.0090.00514.02
5.6.20.0030.00813.99
5.6.10.0100.00214.03
5.6.00.0050.00814.03

preferences:
39.68 ms | 401 KiB | 5 Q