3v4l.org

run code in 300+ PHP versions simultaneously
<?php function error($code, $message, $file = null, $line = 0) { echo "convert error to exception<br>\n"; throw new \ErrorException($message, $code, null, $file, $line); } function shutdown() { echo "shutdown function called<br>\n"; } set_error_handler('error'); register_shutdown_function('shutdown'); try { try { echo $crypto -> compress(); } catch (\Exception $e) { echo "exception catched<br>\n"; } } catch (\Exception $e) { echo "exception caught<br>\n"; } echo "after fatal error<br>\n";

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.0100.01018.28
8.3.50.0110.00722.12
8.3.40.0080.00819.02
8.3.30.0140.00319.04
8.3.20.0030.00620.24
8.3.10.0090.00021.90
8.3.00.0040.00422.49
8.2.180.0070.01016.63
8.2.170.0070.00722.96
8.2.160.0080.00619.33
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0060.00319.48
8.2.110.0060.00322.11
8.2.100.0090.00319.21
8.2.90.0040.00419.28
8.2.80.0000.00818.16
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0040.00417.93
8.2.20.0000.00717.56
8.2.10.0080.00017.80
8.2.00.0040.00417.74
8.1.280.0070.00725.92
8.1.270.0130.00722.24
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0090.00023.91
8.1.230.0030.00719.10
8.1.220.0050.00317.75
8.1.210.0030.00518.77
8.1.200.0100.00017.35
8.1.190.0090.00017.41
8.1.180.0030.00520.47
8.1.170.0070.00418.38
8.1.160.0000.00722.06
8.1.150.0070.00018.64
8.1.140.0040.00417.44
8.1.130.0000.00717.84
8.1.120.0000.00817.42
8.1.110.0060.00317.46
8.1.100.0000.00717.41
8.1.90.0000.00717.48
8.1.80.0000.00717.39
8.1.70.0040.00417.46
8.1.60.0060.00317.64
8.1.50.0070.00017.43
8.1.40.0000.00717.33
8.1.30.0070.00017.61
8.1.20.0030.00517.54
8.1.10.0040.00417.55
8.1.00.0030.00717.58
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0030.00318.44
8.0.270.0000.00717.25
8.0.260.0000.00716.90
8.0.250.0030.00316.98
8.0.240.0070.00016.85
8.0.230.0070.00016.84
8.0.220.0040.00416.85
8.0.210.0000.00716.86
8.0.200.0040.00416.92
8.0.190.0000.00716.91
8.0.180.0000.00716.91
8.0.170.0050.00316.89
8.0.160.0040.00416.84
8.0.150.0040.00416.89
8.0.140.0040.00416.92
8.0.130.0060.00013.45
8.0.120.0030.00516.93
8.0.110.0000.00716.87
8.0.100.0070.00016.82
8.0.90.0040.00416.88
8.0.80.0130.00616.96
8.0.70.0040.00416.75
8.0.60.0050.00216.91
8.0.50.0050.00216.99
8.0.30.0100.00817.22
8.0.20.0130.00617.40
8.0.10.0050.00316.99
8.0.00.0030.01416.77
7.4.330.0050.00015.00
7.4.320.0000.00616.65
7.4.300.0030.00316.51
7.4.290.0000.00716.60
7.4.280.0000.00716.57
7.4.270.0000.00716.60
7.4.260.0000.00716.56
7.4.250.0000.00716.55
7.4.240.0000.00716.59
7.4.230.0000.00716.39
7.4.220.0070.01116.43
7.4.210.0090.00716.64
7.4.200.0000.00716.50
7.4.190.0070.00016.41
7.4.160.0190.00316.54
7.4.150.0090.00917.40
7.4.140.0040.01317.86
7.4.130.0120.00616.53
7.4.120.0070.01116.62
7.4.110.0130.00416.32
7.4.100.0060.01216.41
7.4.90.0110.00716.50
7.4.80.0060.01119.39
7.4.70.0100.01316.61
7.4.60.0080.01416.51
7.4.50.0000.00416.38
7.4.40.0060.00922.77
7.4.30.0050.01116.71
7.4.10.0060.01314.85
7.4.00.0070.01215.04
7.3.330.0020.00213.28
7.3.320.0020.00213.33
7.3.310.0000.00716.20
7.3.300.0070.00016.27
7.3.290.0080.00616.24
7.3.280.0050.01216.32
7.3.270.0070.01017.40
7.3.260.0070.01416.46
7.3.250.0050.01116.37
7.3.240.0070.01016.55
7.3.230.0030.01816.40
7.3.210.0180.00716.41
7.3.200.0060.01019.39
7.3.190.0130.00316.23
7.3.180.0120.00316.33
7.3.170.0170.00316.61
7.3.160.0140.00716.37
7.3.130.0070.01014.82
7.3.120.0050.01214.79
7.3.110.0120.00614.80
7.3.100.0000.01814.91
7.3.90.0060.01214.61
7.3.80.0040.01114.86
7.3.70.0060.00614.87
7.3.60.0120.00614.78
7.3.50.0060.00914.99
7.3.40.0100.00314.59
7.3.30.0110.00314.90
7.3.20.0050.00516.80
7.3.10.0020.01416.67
7.3.00.0060.00516.52
7.2.330.0090.00916.69
7.2.320.0070.01016.75
7.2.310.0160.00616.73
7.2.300.0030.01416.64
7.2.290.0090.00616.72
7.2.260.0030.01414.96
7.2.250.0080.01115.21
7.2.240.0030.01215.16
7.2.230.0000.01615.07
7.2.220.0090.00615.16
7.2.210.0030.01014.80
7.2.200.0000.01714.74
7.2.190.0100.00715.13
7.2.180.0030.01214.73
7.2.170.0000.01315.10
7.2.160.0000.01214.97
7.2.150.0030.01017.02
7.2.140.0070.01116.91
7.2.130.0030.00816.75
7.2.120.0080.00416.87
7.2.110.0070.00516.90
7.2.100.0110.00216.83
7.2.90.0060.00817.00
7.2.80.0100.00616.73
7.2.70.0080.00616.81
7.2.60.0060.00716.91
7.2.50.0080.00416.83
7.2.40.0080.00616.68
7.2.30.0040.00916.75
7.2.20.0040.01117.01
7.2.10.0070.00916.77
7.2.00.0140.00516.82
7.1.330.0070.00715.73
7.1.320.0100.00715.81
7.1.310.0030.01015.79
7.1.300.0080.00815.57
7.1.290.0040.01115.78
7.1.280.0060.00915.82
7.1.270.0060.00615.79
7.1.260.0000.01315.58
7.1.250.0090.00415.79
7.1.240.0090.00715.73
7.1.230.0110.00115.88
7.1.220.0080.00615.78
7.1.210.0040.00715.47
7.1.200.0070.00415.78
7.1.190.0000.01115.78
7.1.180.0050.00615.56
7.1.170.0040.00515.70
7.1.160.0050.01015.72
7.1.150.0080.00515.76
7.1.140.0040.00715.78
7.1.130.0050.01215.68
7.1.120.0050.00815.72
7.1.110.0080.00715.48
7.1.100.0130.00515.74
7.1.90.0040.00815.64
7.1.80.0050.00915.70
7.1.70.0070.00516.14
7.1.60.0030.01116.36
7.1.50.0090.00616.12
7.1.40.0060.00815.75
7.1.30.0060.01115.78
7.1.20.0030.00915.79
7.1.10.0050.00815.58
7.1.00.0050.02918.01
7.0.330.0080.00415.42
7.0.320.0060.00415.26
7.0.310.0060.00715.32
7.0.300.0030.00915.42
7.0.290.0060.00615.21
7.0.280.0040.00915.32
7.0.270.0030.01015.29
7.0.260.0030.00915.53
7.0.250.0070.00415.33
7.0.240.0030.00615.50
7.0.230.0080.00515.50
7.0.220.0070.00515.41
7.0.210.0060.00515.46
7.0.200.0030.00715.85
7.0.190.0050.00515.31
7.0.180.0090.00715.45
7.0.170.0000.01415.27
7.0.160.0080.00715.30
7.0.150.0000.00815.39
7.0.140.0080.02717.42
7.0.130.0030.00815.16
7.0.120.0080.00515.23
7.0.110.0030.00715.46
7.0.100.0100.00315.38
7.0.90.0020.00615.39
7.0.80.0020.01015.48
7.0.70.0050.00515.20
7.0.60.0050.01916.79
7.0.50.0060.01716.08
7.0.40.0080.03215.67
7.0.30.0140.03015.60
7.0.20.0120.02315.65
7.0.10.0120.01815.71
7.0.00.0040.03315.74
5.6.400.0030.00913.92
5.6.390.0060.00614.20
5.6.380.0070.00514.21
5.6.370.0030.00514.33
5.6.360.0010.00914.48
5.6.350.0020.01114.12
5.6.340.0040.00714.29
5.6.330.0090.00614.18
5.6.320.0120.00214.15
5.6.310.0080.00614.14
5.6.300.0070.00514.33
5.6.290.0020.00914.26
5.6.280.0070.02816.52
5.6.270.0080.00614.25
5.6.260.0030.01014.24
5.6.250.0050.00714.08
5.6.240.0070.00414.16
5.6.230.0050.00714.27
5.6.220.0040.00714.29
5.6.210.0090.03016.33
5.6.200.0050.01915.53
5.6.190.0090.03216.28
5.6.180.1240.01516.27
5.6.170.0080.02116.16
5.6.160.0050.03216.12
5.6.150.0060.03315.49
5.6.140.0050.02415.62
5.6.130.0060.02215.50
5.6.120.0070.02916.51
5.6.110.0060.02916.36
5.6.100.0070.02216.57
5.6.90.0100.02916.29
5.6.80.0040.02716.29
5.6.70.0110.03016.21
5.6.60.0100.00614.21
5.6.50.0100.00414.19
5.6.40.0020.01014.17
5.6.30.0010.01113.98
5.6.20.0100.00314.01
5.6.10.0070.00714.16
5.6.00.0070.00414.27
5.5.380.0070.00512.55
5.5.370.0070.00512.68
5.5.360.0010.00812.59
5.5.350.0070.02515.20
5.5.340.0040.03014.28
5.5.330.0000.02415.22
5.5.320.0110.02215.10
5.5.310.0080.02115.25
5.5.300.0090.01814.58
5.5.290.0050.02314.49
5.5.280.0050.03215.31
5.5.270.0060.01815.33
5.5.260.0090.01715.27
5.5.250.0020.03615.39
5.5.240.0050.01615.03
5.5.230.0050.00712.36
5.5.220.0050.00712.52
5.5.210.0040.00912.46
5.5.200.0070.00412.55
5.5.190.0000.01212.50
5.5.180.0020.00912.49
5.5.170.0070.00312.68
5.5.160.0030.00712.32
5.5.150.0050.00812.25
5.5.140.0050.00612.29
5.5.130.0090.00412.29
5.5.120.0040.01012.54
5.5.110.0030.00912.36
5.5.100.0070.00612.42
5.5.90.0090.00212.21
5.5.80.0000.01212.45
5.5.70.0040.00612.56
5.5.60.0030.01112.63
5.5.50.0030.00812.62
5.5.40.0050.00612.49
5.5.30.0030.00612.54
5.5.20.0060.00612.57
5.5.10.0070.00712.52
5.5.00.0060.00812.55
5.4.450.0020.03314.74
5.4.440.0020.03414.67
5.4.430.0040.02214.78
5.4.420.0060.01914.55
5.4.410.0030.02914.54
5.4.400.0060.01614.41
5.4.390.0050.01814.57
5.4.380.0040.01714.68
5.4.370.0060.02114.60
5.4.360.0060.02414.43
5.4.350.0050.03114.44
5.4.340.0040.01914.49
5.4.330.0010.00912.30
5.4.320.0020.02014.59
5.4.310.0070.01714.56
5.4.300.0050.02514.54
5.4.290.0060.02414.42
5.4.280.0060.01614.58
5.4.270.0010.02014.54
5.4.260.0030.01814.56
5.4.250.0040.01814.40
5.4.240.0040.01614.35
5.4.230.0030.03214.56
5.4.220.0030.01714.43
5.4.210.0060.02714.44
5.4.200.0040.02614.51
5.4.190.0050.03014.54
5.4.180.0050.02314.63
5.4.170.0060.02814.41
5.4.160.0030.01914.44
5.4.150.0010.02414.51
5.4.140.0070.02713.74
5.4.130.0060.01613.63
5.4.120.0020.02513.66
5.4.110.0040.02613.62
5.4.100.0040.02613.56
5.4.90.0010.02113.59
5.4.80.0010.02613.61
5.4.70.0020.02913.60
5.4.60.0020.02113.64
5.4.50.0040.02113.56
5.4.40.0030.01713.61
5.4.30.0010.01913.65
5.4.20.0020.01913.59
5.4.10.0050.02713.62
5.4.00.0100.01213.51
5.3.290.0010.03012.89
5.3.280.0030.01712.90
5.3.270.0030.02812.90
5.3.260.0030.02812.90
5.3.250.0050.02012.97
5.3.240.0040.02812.90
5.3.230.0030.02112.86
5.3.220.0030.01812.87
5.3.210.0090.01012.91
5.3.200.0050.02812.85
5.3.190.0060.02312.95
5.3.180.0050.02612.97
5.3.170.0070.01812.96
5.3.160.0040.01712.93
5.3.150.0050.02913.02
5.3.140.0060.02312.87
5.3.130.0040.02512.98
5.3.120.0050.01813.02
5.3.110.0040.02112.93
5.3.100.0040.02712.81
5.3.90.0040.01912.74
5.3.80.0040.01712.72
5.3.70.0030.02812.72
5.3.60.0010.02612.72
5.3.50.0080.01112.74
5.3.40.0040.02712.72
5.3.30.0010.02812.60
5.3.20.0100.01412.68
5.3.10.0060.02312.60
5.3.00.0030.02012.50
5.2.170.0020.03511.91
5.2.160.0020.02911.91
5.2.150.0060.01611.91
5.2.140.0030.03511.91
5.2.130.0060.02611.91
5.2.120.0020.02611.91
5.2.110.0000.02111.91
5.2.100.0030.03211.91
5.2.90.0030.03511.91
5.2.80.0020.02811.91
5.2.70.0030.01911.91
5.2.60.0030.03411.91
5.2.50.0010.03411.91
5.2.40.0020.01911.91
5.2.30.0050.02211.91
5.2.20.0070.02311.91
5.2.10.0050.03311.91
5.2.00.0060.01311.91
5.1.60.0020.02611.91
5.1.50.0040.02511.91
5.1.40.0030.02011.91
5.1.30.0040.01911.91
5.1.20.0050.01711.91
5.1.10.0000.02111.91
5.1.00.0040.01911.91
5.0.50.0020.01211.91
5.0.40.0030.02311.91
5.0.30.0050.03311.91
5.0.20.0030.01211.91
5.0.10.0030.01911.91
5.0.00.0030.03411.91
4.4.90.0020.01711.91
4.4.80.0000.01411.91
4.4.70.0010.01011.91
4.4.60.0010.00811.91
4.4.50.0050.00811.91
4.4.40.0040.02511.91
4.4.30.0030.00811.91
4.4.20.0060.01611.91
4.4.10.0030.01311.91
4.4.00.0000.01511.91
4.3.110.0010.01011.91
4.3.100.0010.01311.91
4.3.90.0020.01211.91
4.3.80.0050.02511.91
4.3.70.0000.01211.91
4.3.60.0030.01711.91
4.3.50.0040.01811.91
4.3.40.0000.02511.91
4.3.30.0020.01511.91
4.3.20.0030.01511.91
4.3.10.0020.01011.91
4.3.00.0020.02111.91

preferences:
41.77 ms | 401 KiB | 5 Q