3v4l.org

run code in 300+ PHP versions simultaneously
<?php \register_shutdown_function('execOnShutdown'); \set_error_handler('phpErrorHandler'); @mkdir('test'); function phpErrorHandler(int $errorType, string $errorMessage, string $errorFile, int $errorLine) : void { echo 'error reporting value is : ' . error_reporting() . PHP_EOL; echo $errorType; if (!(error_reporting() & $errorType)) { return; } echo 'error reporting value is : ' . error_reporting() . PHP_EOL; echo('error type : ' . $errorType) . PHP_EOL; echo('error message : ' . $errorMessage) . PHP_EOL; echo('error file : ' . $errorFile) . PHP_EOL; echo('error line : ' . $errorLine) . PHP_EOL; return; } function execOnShutdown() : void { $error = \error_get_last(); if (! $error) { return; } phpErrorHandler($error['type'], $error['message'], $error['file'], $error['line']); }

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.0110.01118.56
8.3.50.0100.01017.99
8.3.40.0160.00018.84
8.3.30.0040.01118.84
8.3.20.0070.00021.85
8.3.10.0040.00421.95
8.3.00.0050.00319.56
8.2.180.0090.00616.73
8.2.170.0070.00722.96
8.2.160.0070.00722.96
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0050.00319.44
8.2.120.0040.00426.35
8.2.110.0100.00021.04
8.2.100.0090.00317.78
8.2.90.0060.00318.03
8.2.80.0080.00018.22
8.2.70.0000.00817.93
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0030.00620.60
8.2.30.0000.00719.23
8.2.20.0040.00418.11
8.2.10.0040.00418.12
8.2.00.0030.00518.01
8.1.280.0110.00725.92
8.1.270.0030.00623.86
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.83
8.1.230.0060.00620.86
8.1.220.0060.00317.74
8.1.210.0030.00718.77
8.1.200.0040.00417.36
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.71
8.1.160.0000.00718.88
8.1.150.0000.00718.94
8.1.140.0040.00417.79
8.1.130.0000.00720.80
8.1.120.0000.00717.55
8.1.110.0040.00417.47
8.1.100.0000.00717.48
8.1.90.0040.00417.49
8.1.80.0050.00317.41
8.1.70.0040.00417.47
8.1.60.0030.00517.46
8.1.50.0040.00417.59
8.1.40.0030.00617.61
8.1.30.0050.00317.68
8.1.20.0080.00017.68
8.1.10.0050.00217.48
8.1.00.0030.00517.38
8.0.300.0050.00220.15
8.0.290.0080.00016.75
8.0.280.0000.00718.41
8.0.270.0000.00717.30
8.0.260.0040.00417.24
8.0.250.0030.00317.03
8.0.240.0040.00417.07
8.0.230.0070.00316.95
8.0.220.0000.00816.98
8.0.210.0030.00316.88
8.0.200.0000.00717.02
8.0.190.0060.00317.07
8.0.180.0000.00817.06
8.0.170.0030.00616.97
8.0.160.0000.00716.96
8.0.150.0020.00516.82
8.0.140.0040.00317.00
8.0.130.0060.00013.39
8.0.120.0000.00716.89
8.0.110.0070.00017.02
8.0.100.0040.00416.91
8.0.90.0000.00717.03
8.0.80.0070.01016.96
8.0.70.0030.00516.98
8.0.60.0080.00016.97
8.0.50.0070.00016.87
8.0.30.0050.01417.17
8.0.20.0100.00917.40
8.0.10.0040.00416.99
8.0.00.0100.00816.66
7.4.330.0000.00516.70
7.4.320.0000.00616.47
7.4.300.0000.00716.54
7.4.290.0030.00316.54
7.4.280.0000.00816.56
7.4.270.0030.00316.65
7.4.260.0030.00716.51
7.4.250.0000.00716.63
7.4.240.0040.00416.50
7.4.230.0030.00316.38
7.4.220.0000.00816.64
7.4.210.0090.00616.60
7.4.200.0030.00316.55
7.4.160.0120.00816.58
7.4.140.0140.00317.86
7.4.130.0100.00716.47
7.4.120.0070.01016.61
7.4.110.0180.00316.61
7.4.100.0110.00516.51
7.4.90.0140.00416.53
7.4.80.0070.01519.39
7.4.70.0110.00716.63
7.4.60.0130.00316.53
7.4.50.0030.01016.63
7.4.40.0100.01016.59
7.4.10.0090.00714.73
7.4.00.0090.00914.89
7.3.330.0070.00013.40
7.3.320.0000.00513.27
7.3.310.0080.00016.37
7.3.300.0000.00716.32
7.3.290.0040.00416.35
7.3.280.0070.00916.43
7.3.260.0120.00416.52
7.3.240.0100.00716.49
7.3.230.0150.00316.71
7.3.210.0140.00716.38
7.3.200.0100.00716.76
7.3.190.0090.00616.69
7.3.180.0090.00616.54
7.3.170.0140.00316.34
7.3.160.0040.01516.64
7.3.130.0060.01315.00
7.3.120.0070.01014.99
7.3.110.0060.01315.00
7.3.100.0100.00314.55
7.3.90.0070.00714.63
7.3.80.0070.00415.12
7.3.70.0030.00614.97
7.3.60.0000.01014.64
7.3.50.0040.01114.88
7.3.40.0070.01114.93
7.3.30.0000.00914.97
7.3.20.0030.00916.87
7.3.10.0070.00716.75
7.3.00.0070.01116.50
7.2.330.0060.01116.69
7.2.320.0090.00916.46
7.2.310.0130.00716.79
7.2.300.0060.01216.45
7.2.290.0080.01516.56
7.2.260.0040.01215.25
7.2.250.0040.01215.33
7.2.240.0030.00915.23
7.2.230.0030.01215.04
7.2.220.0030.01315.23
7.2.210.0000.01415.29
7.2.200.0000.01015.00
7.2.190.0070.00714.97
7.2.180.0070.00715.01
7.2.170.0030.01215.19
7.2.160.0080.00414.88
7.2.150.0030.00917.09
7.2.140.0100.00716.99
7.2.130.0000.01816.84
7.2.120.0000.01117.07
7.2.110.0000.01116.93
7.2.100.0110.00416.85
7.2.90.0100.00717.04
7.2.80.0070.01116.81
7.2.70.0040.01116.99
7.2.60.0040.00816.83
7.2.50.0000.01817.04
7.2.40.2400.00817.48
7.2.30.2280.01017.37
7.2.20.2280.01417.52
7.2.10.1510.01117.40
7.2.00.2650.01017.30
7.1.330.0030.00915.86
7.1.320.0000.01515.54
7.1.310.0000.01215.80
7.1.300.0000.01015.86
7.1.290.0140.00015.91
7.1.280.0080.00615.86
7.1.270.0000.01615.89
7.1.260.0030.01015.98
7.1.250.0080.00816.06
7.1.240.0070.00715.79
7.1.230.0080.00415.86
7.1.220.0080.00815.78
7.1.210.0100.00715.64
7.1.200.0030.00915.81
7.1.190.0030.00615.89
7.1.180.0000.01215.78
7.1.170.0050.00515.78
7.1.160.3030.00716.03
7.1.150.2570.01316.49
7.1.140.1190.01216.42
7.1.130.2020.00816.33
7.1.120.0900.01116.35
7.1.110.3130.01016.11
7.1.100.1010.01015.82
7.1.90.3600.00816.11
7.1.80.3360.01116.04
7.1.70.2700.00815.56
7.1.60.2680.01024.48
7.1.50.3230.00924.48
7.1.40.3880.01424.12
7.1.30.3320.01024.36
7.1.20.3280.00724.26
7.1.10.2670.01115.22
7.1.00.1830.00715.37
7.0.330.0040.00415.55
7.0.320.0000.01315.52
7.0.310.0030.00815.54
7.0.300.0080.00815.45
7.0.290.0030.00915.53
7.0.280.0050.00315.45
7.0.270.0000.00915.57
7.0.260.0120.00315.36
7.0.250.0060.00615.31
7.0.240.0030.00715.49
7.0.230.0060.00615.27
7.0.220.0000.00915.48
7.0.210.0030.00915.52
7.0.200.0060.01015.52
7.0.190.0000.01815.58
7.0.180.0060.00615.66
7.0.170.0060.00615.59
7.0.160.0030.00715.30
7.0.150.0090.00915.33
7.0.140.0040.01115.63
7.0.130.0070.01115.65
7.0.120.0050.00815.61
7.0.110.0070.00715.51
7.0.100.0070.00715.55
7.0.90.0110.00415.37
7.0.80.0100.01015.27
7.0.70.0000.00815.45
7.0.60.0030.01015.50
7.0.50.0090.00615.54
7.0.40.0080.00813.35
7.0.30.0100.00313.57
7.0.20.0030.00513.59
7.0.10.0030.00513.38
7.0.00.0070.00713.32
5.6.400.0060.01114.10
5.6.390.0050.00314.18
5.6.380.0150.00014.11
5.6.370.0080.00414.16
5.6.360.0030.00614.14
5.6.350.0130.00313.94
5.6.340.0000.01313.70
5.6.330.0080.00314.08
5.6.320.0030.00914.33
5.6.310.0030.01414.18
5.6.300.0040.00714.34
5.6.290.0060.01214.08
5.6.280.0120.00314.23
5.6.270.0130.00014.25
5.6.260.0070.00714.08
5.6.250.0100.00314.18
5.6.240.0040.00414.07
5.6.230.0070.01314.41
5.6.220.0100.00014.08
5.6.210.0030.01214.22
5.6.200.0030.01314.10
5.6.190.0060.00913.99
5.6.180.0060.00314.09
5.6.170.0060.00614.05
5.6.160.0110.00314.20
5.6.150.0090.00614.42
5.6.140.0040.00414.06
5.6.130.0040.00814.13
5.6.120.0090.00313.94
5.6.110.0060.00613.97
5.6.100.0030.00614.27
5.6.90.0030.00914.10
5.6.80.0070.00614.13
5.6.70.0030.00614.16
5.6.60.0060.00614.11
5.6.50.0040.00413.82
5.6.40.0060.00614.10
5.6.30.0060.00314.20
5.6.20.0040.00714.01
5.6.10.0030.01014.08
5.6.00.0060.00613.95

preferences:
70.02 ms | 401 KiB | 5 Q